@@ -482,22 +482,28 @@ The *-quote values of the content property</h4>
482482 Each occurrence of ''open-quote'' or ''close-quote''
483483 is replaced by a quotation mark string
484484 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=] .
486486
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> ):
488489 the number of occurrences of ''open-quote'' in all generated text before the current occurrence,
489490 minus the number of occurrences of ''close-quote'' .
490491 If the depth is 0, the first pair is used,
491492 if the depth is 1, the second pair is used, etc.
492493 If the depth is greater than the number of pairs,
493494 the last pair is repeated.
494495
495- Note: Quote depth is independent of
496+ Note: [= Quote depth=] is independent of
496497 the nesting of the source document or the formatting structure.
497498 Also, like [[css-lists-3#inheriting-counters|counter inheritance]] ,
498499 it operates on the “flattened element tree”
499500 in the context of the [[DOM]] .
500501
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+
501507 <div class="example">
502508 Some typographic styles require open quotation marks to be repeated
503509 before every paragraph of a quote spanning several paragraphs,
@@ -1349,6 +1355,9 @@ bookmark-state</h3>
13491355 (<a href="https://github.com/w3c/csswg-drafts/issues/5478">Issue 5478</a> )
13501356 <li> Added ''quotes/match-parent'' value to 'quotes' .
13511357 (<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> )
13521361 <li> Miscellaneous editorial spec clean up.
13531362 </ul>
13541363
0 commit comments