@@ -482,22 +482,28 @@ The *-quote values of the content property</h4>
482
482
Each occurrence of ''open-quote'' or ''close-quote''
483
483
is replaced by a quotation mark string
484
484
as defined by the [=quotation mark system=] specified by the 'quotes' property,
485
- based on the depth of nesting.
485
+ based on the [=quote depth|depth of nesting=] .
486
486
487
- Which pair of quotes is used depends on the nesting level of quotes:
487
+ Which pair of quotes is used depends on the nesting level of quotes
488
+ (the <dfn>quote depth</dfn> ):
488
489
the number of occurrences of ''open-quote'' in all generated text before the current occurrence,
489
490
minus the number of occurrences of ''close-quote'' .
490
491
If the depth is 0, the first pair is used,
491
492
if the depth is 1, the second pair is used, etc.
492
493
If the depth is greater than the number of pairs,
493
494
the last pair is repeated.
494
495
495
- Note: Quote depth is independent of
496
+ Note: [= Quote depth=] is independent of
496
497
the nesting of the source document or the formatting structure.
497
498
Also, like [[css-lists-3#inheriting-counters|counter inheritance]] ,
498
499
it operates on the “flattened element tree”
499
500
in the context of the [[DOM]] .
500
501
502
+ A ''close-quote'' or ''no-close-quote'' that would make the [=quote depth=] negative
503
+ is in error and is ignored (at rendering time):
504
+ the depth stays at 0 and no quote mark is inserted
505
+ (although the rest of the 'content' property's value is still inserted).
506
+
501
507
<div class="example">
502
508
Some typographic styles require open quotation marks to be repeated
503
509
before every paragraph of a quote spanning several paragraphs,
@@ -1349,6 +1355,9 @@ bookmark-state</h3>
1349
1355
(<a href="https://github.com/w3c/csswg-drafts/issues/5478">Issue 5478</a> )
1350
1356
<li> Added ''quotes/match-parent'' value to 'quotes' .
1351
1357
(<a href="https://github.com/w3c/csswg-drafts/issues/5478">Issue 5478</a> )
1358
+ <li> Prevent negative [=quote depth=] by ignoring excess closing quotes,
1359
+ consistent with [[CSS2]] .
1360
+ (<a href="https://github.com/w3c/csswg-drafts/issues/2038">Issue 2034</a> )
1352
1361
<li> Miscellaneous editorial spec clean up.
1353
1362
</ul>
1354
1363
0 commit comments