Skip to content

Commit 8b2623c

Browse files
committed
[css-content-3] Define 'match-parent' for 'quotes' w3c#5478
1 parent 825df74 commit 8b2623c

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

css-content-3/Overview.bs

+16-2
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,12 @@ Specifying quotes with the 'quotes' property</h4>
390390

391391
<pre class='propdef'>
392392
Name: quotes
393-
Value: auto | none | [ <<string>> <<string>> ]+
393+
Value: auto | none | match-parent | [ <<string>> <<string>> ]+
394394
Initial: auto
395395
Applies To: all elements
396396
Inherited: yes
397397
Percentages: n/a
398-
Computed Value: the keyword ''quotes/none'', the keyword ''quotes/auto'', or a list, each item a pair of string values
398+
Computed Value: the keyword ''quotes/none'', the keyword ''quotes/auto'' or ''quotes/match-parent'', or a list, each item a pair of string values
399399
Animation type: discrete
400400
</pre>
401401

@@ -428,6 +428,18 @@ Specifying quotes with the 'quotes' property</h4>
428428
however it is encouraged to submit any improvements to Unicode
429429
so that the entire software ecosystem can benefit.
430430

431+
<dt><dfn>match-parent</dfn>
432+
<dd>
433+
Specifies the same [=quotation mark system=] as the the parent.
434+
In general this is equivalent to inheriting the parent's [=computed value=],
435+
except that ''quotes/auto'' it resolves
436+
using the same [=content language=] that the parent used.
437+
438+
Issue: Two possible approaches here, currently speccing the latter:
439+
a) this computes to the relevant string values, and inherits as such.
440+
b) this value effectively inherits as a keyword + a language code,
441+
meaning ''quotes/auto'', but with this language.
442+
431443
<dt>[ <<string>> <<string>> ]+
432444
<dd>
433445
The [=quotation mark system=] is defined as
@@ -1335,6 +1347,8 @@ bookmark-state</h3>
13351347
<li>Updated ''quotes/auto'' to reference the <em>parent</em> [=content language=]
13361348
rather than the [=content language=] of the element itself.
13371349
(<a href="https://github.com/w3c/csswg-drafts/issues/5478">Issue 5478</a>)
1350+
<li>Added ''quotes/match-parent'' value to 'quotes'.
1351+
(<a href="https://github.com/w3c/csswg-drafts/issues/5478">Issue 5478</a>)
13381352
<li>Miscellaneous editorial spec clean up.
13391353
</ul>
13401354

0 commit comments

Comments
 (0)