@@ -378,17 +378,16 @@ Element Content</h3>
378
378
<h3 id="quotes">
379
379
Quotes</h3>
380
380
381
- HTML has long had the <code> q</code> element,
382
- used to delimit quotations.
383
- The ''quotes'' property,
381
+ The ''quotes'' property, which defines the [=quotation mark system=] of an
382
+ element,
384
383
in conjunction with the various ''*-quote'' values of the 'content' property,
385
- can be used to properly style such quotations.
386
-
384
+ which insert corresponding quotation marks as generated content,
385
+ can be used to automatically insert opening and closing quotation marks,
386
+ such as for the HTML <{q}> element.
387
387
388
388
<h4 id="quotes-property">
389
389
Specifying quotes with the 'quotes' property</h4>
390
390
391
-
392
391
<pre class='propdef'>
393
392
Name : quotes
394
393
Value : auto | none | [ <<string>> <<string>> ]+
@@ -402,7 +401,11 @@ Specifying quotes with the 'quotes' property</h4>
402
401
403
402
<p class=all-media> User agents are expected to support this property on all media, including non-visual ones.</p>
404
403
405
- This property specifies quotation marks for any number of embedded quotations. Values have the following meanings:
404
+ This property specifies the <dfn>quotation mark system</dfn> for the element,
405
+ defining how the 'content' property’s
406
+ ''content/open-quote'' and ''content/close-quote'' values behave.
407
+ See [[#quote-values]] .
408
+ Values have the following meanings:
406
409
407
410
<dl dfn-type=value dfn-for=quotes>
408
411
<dt> <dfn>none</dfn>
@@ -413,10 +416,9 @@ Specifying quotes with the 'quotes' property</h4>
413
416
414
417
<dt> <dfn>auto</dfn>
415
418
<dd>
416
- A typographically appropriate [=used value=] for 'quotes'
419
+ A typographically appropriate [=quotation mark system=]
417
420
is automatically chosen by the UA
418
- based on the [=content language=]
419
- of the parent
421
+ based on the [=content language=] of the parent
420
422
(or, if there is no parent, of the element itself).
421
423
422
424
Note: The Unicode Common Locale Data Repository [[CLDR]]
@@ -428,14 +430,15 @@ Specifying quotes with the 'quotes' property</h4>
428
430
429
431
<dt> [ <<string>> <<string>> ] +
430
432
<dd>
431
- Values for the ''open-quote'' and ''close-quote'' values of the 'content' property
432
- are taken from this list of pairs of quotation marks (opening and closing).
433
- The first (leftmost) pair represents the outermost level of quotation,
434
- the second pair the first level of embedding, etc.
435
- The user agent must apply the appropriate pair of quotation marks according to the level of embedding.
433
+ The [=quotation mark system=] is defined as
434
+ the specified list of pairs of quotation marks (opening and closing).
435
+ The first pair represents the outermost level of quotation,
436
+ the second pair the next level of embedding, etc.
437
+ Within a pair,
438
+ the ''open-quote'' value refers to the first <<string>> ,
439
+ ''close-quote'' refers to the second.
436
440
</dl>
437
441
438
-
439
442
<h4 id="quote-values">
440
443
The *-quote values of the content property</h4>
441
444
@@ -447,28 +450,28 @@ The *-quote values of the content property</h4>
447
450
<dt> <dfn>open-quote</dfn>
448
451
<dt> <dfn>close-quote</dfn>
449
452
<dd>
450
- These values are replaced by the appropriate string from the 'quotes' property,
451
- and increments (decrements) the level of nesting for quotes.
452
- See [[#quotes-property]] for more information.
453
+ These values are replaced by the appropriate string
454
+ as defined by the 'quotes' property,
455
+ and increments (for ''no-open-quote'' )
456
+ or decrements (for ''no-close-quote'' )
457
+ the level of nesting for quotes.
453
458
454
459
<dt> <dfn>no-open-quote</dfn>
455
460
<dt> <dfn>no-close-quote</dfn>
456
461
<dd>
457
462
Inserts nothing (as in ''content/none'' ),
458
- but increments (decrements) the level of nesting for quotes.
459
- See [[#quotes-property]] for more information.
463
+ but increments (for ''no-open-quote'' )
464
+ or decrements (for ''no-close-quote'' )
465
+ the level of nesting for quotes.
460
466
</dl>
461
467
462
-
463
-
464
- Quotation marks are inserted in appropriate places in a document
468
+ Quotation marks can be inserted in appropriate places in a document
465
469
with the ''open-quote'' and ''close-quote'' values of the 'content' property.
466
470
Each occurrence of ''open-quote'' or ''close-quote''
467
- is replaced by one of the strings from the value of 'quotes' ,
471
+ is replaced by a quotation mark string
472
+ as defined by the [=quotation mark system=] specified by the 'quotes' property,
468
473
based on the depth of nesting.
469
474
470
- ''open-quote'' refers to the first of a pair of quotes,
471
- ''close-quote'' refers to the second.
472
475
Which pair of quotes is used depends on the nesting level of quotes:
473
476
the number of occurrences of ''open-quote'' in all generated text before the current occurrence,
474
477
minus the number of occurrences of ''close-quote'' .
@@ -477,34 +480,33 @@ The *-quote values of the content property</h4>
477
480
If the depth is greater than the number of pairs,
478
481
the last pair is repeated.
479
482
480
- Note that this quoting depth is independent of
483
+ Note: Quote depth is independent of
481
484
the nesting of the source document or the formatting structure.
482
-
483
- Note: Quote nesting, like [[css-lists-3#inheriting-counters|counter inheritance]] ,
484
- operates on the “flattened element tree”
485
+ Also, like [[css-lists-3#inheriting-counters|counter inheritance]] ,
486
+ it operates on the “flattened element tree”
485
487
in the context of the [[DOM]] .
486
488
487
- Some typographic styles require open quotation marks to be repeated
488
- before every paragraph of a quote spanning several paragraphs,
489
- but only the last paragraph ends with a closing quotation mark.
490
- In CSS, this can be achieved by inserting "phantom" closing quotes.
491
- The keyword ''no-close-quote'' decrements the quoting level,
492
- but does not insert a quotation mark.
493
-
494
-
495
489
<div class="example">
496
- The following style sheet puts opening quotation marks on every paragraph in a <code> blockquote</code> , and inserts a single closing quote at the end:
490
+ Some typographic styles require open quotation marks to be repeated
491
+ before every paragraph of a quote spanning several paragraphs,
492
+ but only the last paragraph ends with a closing quotation mark.
493
+ In CSS, this can be achieved by inserting "phantom" closing quotes.
494
+ The keyword ''no-close-quote'' decrements the quoting level,
495
+ but does not insert a quotation mark.
496
+
497
+ The following style sheet puts opening quotation marks on every paragraph in a <code> blockquote</code> ,
498
+ and inserts a single closing quote at the end:
497
499
498
500
<pre>
499
- blockquote p:before { content: open-quote }
500
- blockquote p:after { content: no-close-quote }
501
+ blockquote p:: before { content: open-quote }
502
+ blockquote p:: after { content: no-close-quote }
501
503
blockquote p:last-child::after { content: close-quote }
502
504
</pre>
503
- </div>
504
505
505
- For symmetry, there is also a ''no-open-quote'' keyword,
506
- which inserts nothing,
507
- but increments the quotation depth by one.
506
+ For symmetry, there is also a ''no-open-quote'' keyword,
507
+ which inserts nothing,
508
+ but increments the quotation depth by one.
509
+ </div>
508
510
509
511
Note: If a quotation is in a different language than the surrounding text,
510
512
it is customary to quote the text with the quote marks of the language of the surrounding text,
@@ -597,9 +599,6 @@ The *-quote values of the content property</h4>
597
599
</div>
598
600
599
601
600
-
601
-
602
-
603
602
<h3 id="leaders">
604
603
Leaders</h3>
605
604
@@ -1327,17 +1326,19 @@ bookmark-state</h3>
1327
1326
* what ::outside::before matches in this case
1328
1327
-->
1329
1328
1330
- <h2 id="changes">Changes since the 2 June 2016 Working Draft </h2>
1329
+ <h2 id="changes">Changes</h2>
1331
1330
1332
- Significant changes since the <a href="https://www.w3.org/TR/2016 /WD-css-content-3-20160602 /">2 June 2016 Working Draft</a>
1331
+ Significant changes since the <a href="https://www.w3.org/TR/2019 /WD-css-content-3-20190802 /">2 August 2019 Working Draft</a>
1333
1332
consist primarily of:
1334
1333
1335
1334
<ul>
1336
- <li> Adding ''quotes/auto'' as the initial value of 'quotes' .
1337
- <li> Lots of miscellaneous spec clean up: errors, cross-references, overly-loose or sloppy definitions, etc.
1335
+ <li> Updated ''quotes/auto'' to reference the <em> parent</em> [=content language=]
1336
+ rather than the [=content language=] of the element itself.
1337
+ (<a href="https://github.com/w3c/csswg-drafts/issues/5478">Issue 5478</a> )
1338
+ <li> Miscellaneous editorial spec clean up.
1338
1339
</ul>
1339
1340
1340
- See also <a href="https://www.w3.org/TR/2016 /WD-css-content-3-20160602 /#changes">previous changes</a> .
1341
+ See also <a href="https://www.w3.org/TR/2019 /WD-css-content-3-20190802 /#changes">previous changes</a> .
1341
1342
1342
1343
<h2 class="no-num" id="acknowledgements">Acknowledgements</h2>
1343
1344
0 commit comments