1111 < meta content ="CSS Generated Content for Paged Media Module "
1212 name =dcterms.title >
1313 < meta content =text name =dcterms.type >
14- < meta content =2013-07-01 name =dcterms.date >
14+ < meta content =2013-07-02 name =dcterms.date >
1515 < meta content ="Håkon Wium Lie " name =dcterms.creator >
1616 < meta content =W3C name =dcterms.publisher >
1717 < meta content ="http://dev.w3.org/csswg/css3-gcpm/ " name =dcterms.identifier >
3333
3434 < h1 > CSS Generated Content for Paged Media Module</ h1 >
3535
36- < h2 class ="no-num no-toc " id =w3c-working > Editor's Draft 1 July 2013</ h2 >
36+ < h2 class ="no-num no-toc " id =w3c-working > Editor's Draft 2 July 2013</ h2 >
3737
3838 < dl >
3939 < dt > This version:
4040
4141 < dd > < a
42- href ="http://dev.w3.org/csswg/css3-gcpm/ "> http://www.w3.org/TR/2013/ED-css3-gcpm-20130701 /</ a >
42+ href ="http://dev.w3.org/csswg/css3-gcpm/ "> http://www.w3.org/TR/2013/ED-css3-gcpm-20130702 /</ a >
4343
4444 < dt > Latest version:
4545
@@ -456,31 +456,31 @@ <h4 id=setting-named-strings-the-string-set-pro><span class=secno>2.1.1.
456456 href ="http://www.w3.org/TR/CSS21/syndata.html#counter "> CSS 2.1 section
457457 4.3.5</ a >
458458
459- < dt > contents
459+ < dt class = unimplemented > contents
460460
461- < dd > The textual content of the element, including the content of its
462- ::before and ::after pseudo-element. The content of the element's
463- descendants, including their respective ::before and ::after
461+ < dd class = unimplemented > The textual content of the element, including the
462+ content of its ::before and ::after pseudo-element. The content of the
463+ element's descendants, including their respective ::before and ::after
464464 pseudo-elements, are included in the returned content.
465465
466- < dt > content-element
466+ < dt > <!-- content-element--> content
467467
468468 < dd > The textual content of the element, not including the content of its
469469 ::before and ::after pseudo-element. The content of the element's
470470 descendants, including their respective ::before and ::after
471471 pseudo-elements, are included in the returned content.
472472
473- < dt > content-before
473+ < dt > <!-- content-before--> before
474474
475475 < dd > The textual content of the ::before pseudo-element the content of the
476476 element.
477477
478- < dt > content-after
478+ < dt > <!-- content-after--> after
479479
480480 < dd > The textual content of the ::after pseudo-element the content of the
481481 element.
482482
483- < dt > content-first-letter
483+ < dt > <!-- content-first-letter--> first-letter
484484
485485 < dd > The first letter of the content of the element. The definition of a
486486 letter is the same as for :first-letter pseudo-elements.
@@ -549,7 +549,8 @@ <h4 id=setting-named-strings-the-string-set-pro><span class=secno>2.1.1.
549549 < div class =example >
550550 < pre >
551551h2 {
552- string-set: header "Chapter " counter(header) ": " contents;
552+ <!-- string-set: header "Chapter " counter(header) ": " contents;-->
553+ string-set: header "Chapter " counter(header) ": " content();
553554 counter-increment: header;
554555}
555556</ pre >
@@ -566,26 +567,29 @@ <h4 id=setting-named-strings-the-string-set-pro><span class=secno>2.1.1.
566567 < pre >
567568h2:before { content: "Chapter " counter(header) }
568569h2 {
569- string-set: header content-before content-element;
570+ <!-- string-set: header content-before content-element;-->
571+ string-set: header content(before) content();
570572 counter-increment: header }
571573</ pre >
572574 </ div >
573575
574576 < div class =example >
575577 < pre >
576- dt { string-set: index content-first-letter }
578+ <!--dt { string-set: index content-first-letter }-->
579+ dt { string-set: index content(first-letter) }
577580</ pre >
578581 </ div >
579582
580583 < div class =example >
581584 < p > The content is copied regardless of other settings on the element. In
582- HTML, TITLE elements are normally not displayed, but in this examplet the
585+ HTML, TITLE elements are normally not displayed, but in this example the
583586 content is copied into a named string:
584587
585588 < pre >
586589title {
587590 display: none;
588- string-set: header contents;
591+ <!-- string-set: header contents;-->
592+ string-set: tittel content();
589593}
590594</ pre >
591595 </ div >
@@ -604,8 +608,10 @@ <h4 id=using-named-strings><span class=secno>2.1.2. </span>Using named
604608@page { @top-center { content: string(header) }}
605609@page { @right-middle { content: string(index) }}
606610@page { @top-left { content: string(entry) }}
607- h1 { string-set: header "Chapter " counter(chapter) contents }
608- dt { string-set: index content-first-letter, entry contents }
611+ <!--h1 { string-set: header "Chapter " counter(chapter) contents }
612+ dt { string-set: index content-first-letter, entry contents }-->
613+ h1 { string-set: header "Chapter " counter(chapter) content() }
614+ dt { string-set: index content(first-letter), entry content() }
609615</ pre >
610616 </ div >
611617
@@ -648,7 +654,8 @@ <h4 id=using-named-strings><span class=secno>2.1.2. </span>Using named
648654@page { @top-left { content: string(term, first) }}
649655@page { @top-right { content: string(term, last) }}
650656@page { @top-center { content: string(index, first) }}
651- dt { string-set: index content-first-letter, term contents }
657+ <!--dt { string-set: index content-first-letter, term contents }-->
658+ dt { string-set: index content(first-letter), term content() }
652659</ pre >
653660 </ div >
654661
@@ -660,7 +667,8 @@ <h4 id=using-named-strings><span class=secno>2.1.2. </span>Using named
660667
661668 < pre >
662669@page { @top-center { content: string(chapter, first-except) }}
663- h1 { string-set: chapter contents }
670+ <!--h1 { string-set: chapter contents }-->
671+ h1 { string-set: chapter content() }
664672</ pre >
665673 </ div >
666674
@@ -706,18 +714,18 @@ <h3 id=running-elements><span class=secno>2.2. </span>Running elements</h3>
706714}
707715</ pre >
708716 </ div >
717+ <!--
718+ <div class="example unimplemented">
719+ <p>In this example, the element is copied into the running header but it also keeps its normal place.
709720
710- < div class ="example unimplemented ">
711- < p > In this example, the element is copied into the running header but it
712- also keeps its normal place.
713-
714- < pre >
721+ <pre>
715722title { position: running(header), normal }
716723@page { @top-center {
717724 content: element(header) }
718725}
719726</pre>
720- </ div >
727+ </div>
728+ -->
721729
722730 < p > Like the ‘< code class =css > string()</ code > ’ value, the ‘< code
723731 class =css > element()</ code > ’ value accepts an optional second argument:
@@ -846,10 +854,9 @@ <h2 id=leaders><span class=secno>3. </span>Leaders</h2>
846854
847855 < td > \0020
848856 </ table >
849- <!--
850- <p>User Agents should attempt to align corresponding glyphs from the
851- leader pattern between consecutive lines.
852- -->
857+
858+ < p > User Agents should attempt to align corresponding glyphs from the leader
859+ pattern between consecutive lines.
853860
854861 < p > The string inside the parenthesis is called the < em > leader string</ em > .
855862
@@ -1076,41 +1083,43 @@ <h3 id=the-target-counter-and-target-counters-v><span class=secno>4.1.
10761083</ pre >
10771084 </ div >
10781085
1079- < h3 id =the-target-text-value > < span class =secno > 4.2. </ span > The ‘< code
1080- class =css > target-text</ code > ’ value</ h3 >
1081-
1082- < p > Textual cross-references are generated by ‘< code
1083- class =css > target-text()</ code > ’ which fetches the textual content from
1084- the target end of the link. Only text is copied; not style, structure, or
1085- replaced content. ‘< code class =css > target-text()</ code > ’ has one
1086- required argument: the url of the link. An optional second argument
1087- specifies exactly which content is fetched. There are five possible
1088- values: ‘< code class =css > contents</ code > ’, ‘< code
1089- class =css > content-element</ code > ’, ‘< code
1090- class =css > content-before</ code > ’, ‘< code
1091- class =css > content-after</ code > ’, ‘< code
1092- class =css > content-first-letter</ code > ’; these keywords are defined
1093- above.
1086+ < div class =unimplemented >
1087+ < h3 id =the-target-text-value > < span class =secno > 4.2. </ span > The ‘< code
1088+ class =css > target-text</ code > ’ value</ h3 >
1089+
1090+ < p > Textual cross-references are generated by ‘< code
1091+ class =css > target-text()</ code > ’ which fetches the textual content from
1092+ the target end of the link. Only text is copied; not style, structure, or
1093+ replaced content. ‘< code class =css > target-text()</ code > ’ has one
1094+ required argument: the url of the link. An optional second argument
1095+ specifies exactly which content is fetched. There are five possible
1096+ values: ‘< code class =css > contents</ code > ’, ‘< code
1097+ class =css > content-element</ code > ’, ‘< code
1098+ class =css > content-before</ code > ’, ‘< code
1099+ class =css > content-after</ code > ’, ‘< code
1100+ class =css > content-first-letter</ code > ’; these keywords are defined
1101+ above.
10941102
1095- < div class =example >
1096- < p > To generate this text
1103+ < div class =example >
1104+ < p > To generate this text
10971105
1098- < blockquote >
1099- < p > See Chapter 3 ("A better way") on page 31 for an in-depth evaluation.
1100- </ blockquote >
1101- from this markup:
1102- < pre >
1106+ < blockquote >
1107+ < p > See Chapter 3 ("A better way") on page 31 for an in-depth evaluation.
1108+ </ blockquote >
1109+ from this markup:
1110+ < pre >
11031111<p> See <a href="#chx"> this chapter</a> for an in-depth evaluation.
11041112...
11051113<h2 id="chx"> A better way</h2>
11061114</ pre >
1107- this CSS code can be used:
1108- < pre >
1115+ this CSS code can be used:
1116+ < pre >
11091117h2 { counter-increment: chapter }
11101118a { content: "Chapter " target-counter(attr(href url), chapter)
11111119 ' ("' target-text(attr(href url), content-element) '") on page '
11121120 target-counter(attr(href url), page);
11131121</ pre >
1122+ </ div >
11141123 </ div >
11151124
11161125 < h2 id =footnotes > < span class =secno > 5. </ span > Footnotes</ h2 >
0 commit comments