|
11 | 11 | <meta content="CSS Generated Content for Paged Media Module" |
12 | 12 | name=dcterms.title> |
13 | 13 | <meta content=text name=dcterms.type> |
14 | | - <meta content=2013-07-06 name=dcterms.date> |
| 14 | + <meta content=2013-07-08 name=dcterms.date> |
15 | 15 | <meta content="Håkon Wium Lie" name=dcterms.creator> |
16 | 16 | <meta content=W3C name=dcterms.publisher> |
17 | 17 | <meta content="http://dev.w3.org/csswg/css3-gcpm/" name=dcterms.identifier> |
|
24 | 24 | .example { background: #ddd } |
25 | 25 | body { line-height: 1.3 } |
26 | 26 | .unimplemented { background: #fdd } |
| 27 | + |
| 28 | +table.string-set-example { font-family: monospace; border-collapse: collapse } |
| 29 | +table.string-set-example div.pre { |
| 30 | + width: 12em; white-space: pre; |
| 31 | +} |
| 32 | +table.string-set-example td { |
| 33 | + padding: 0.3em; |
| 34 | + border: thin solid black |
| 35 | +} |
27 | 36 | </style> |
28 | 37 |
|
29 | 38 | <body> |
|
33 | 42 |
|
34 | 43 | <h1>CSS Generated Content for Paged Media Module</h1> |
35 | 44 |
|
36 | | - <h2 class="no-num no-toc" id=w3c-working>Editor's Draft 6 July 2013</h2> |
| 45 | + <h2 class="no-num no-toc" id=w3c-working>Editor's Draft 8 July 2013</h2> |
37 | 46 |
|
38 | 47 | <dl> |
39 | 48 | <dt>This version: |
40 | 49 |
|
41 | 50 | <dd><a |
42 | | - href="http://dev.w3.org/csswg/css3-gcpm/">http://www.w3.org/TR/2013/ED-css3-gcpm-20130706/</a> |
| 51 | + href="http://dev.w3.org/csswg/css3-gcpm/">http://www.w3.org/TR/2013/ED-css3-gcpm-20130708/</a> |
43 | 52 |
|
44 | 53 | <dt>Latest version: |
45 | 54 |
|
@@ -619,14 +628,17 @@ <h4 id=using-named-strings><span class=secno>2.1.2. </span>Using named |
619 | 628 | <ul> |
620 | 629 | <li>‘<code class=css>first</code>’: the value of the first assignment |
621 | 630 | on the page is used. If there is no assignment on the page, the named |
622 | | - string's carryover value is used. This is the default value. |
| 631 | + string's entry value is used. The entry value is the value held by the |
| 632 | + string at the end of the previous page. ‘<code |
| 633 | + class=css>first</code>’ is the default value. |
623 | 634 |
|
624 | 635 | <li>‘<code class=css>start</code>’: the value of the first assignment |
625 | | - on the page is used if the element begins the page. Otherwise, the named |
626 | | - string's carryover value is used. |
| 636 | + on the page is used if the element begins the page or the named string |
| 637 | + has not been assigned a value. Otherwise, the named string's entry value |
| 638 | + is used. |
627 | 639 |
|
628 | | - <li>‘<code class=css>last</code>’: the named string's exit value for |
629 | | - that page is used |
| 640 | + <li>‘<code class=css>last</code>’: the named string's exit value is |
| 641 | + used |
630 | 642 |
|
631 | 643 | <li>‘<code class=css>first-except</code>’: similar to ‘<code |
632 | 644 | class=css>first</code>’, except on the page where the value was |
@@ -654,6 +666,89 @@ <h4 id=using-named-strings><span class=secno>2.1.2. </span>Using named |
654 | 666 | </pre> |
655 | 667 | </div> |
656 | 668 |
|
| 669 | + <div class=example> |
| 670 | + <p>Given this CSS code: |
| 671 | + |
| 672 | + <pre> |
| 673 | +h2 { string-set: header content } |
| 674 | +</pre> |
| 675 | + |
| 676 | + <p>The value of the "header" string |
| 677 | + |
| 678 | + <table class=string-set-example> |
| 679 | + <tbody> |
| 680 | + <tr> |
| 681 | + <td>page# |
| 682 | + |
| 683 | + <td>HTML code |
| 684 | + |
| 685 | + <td>first |
| 686 | + |
| 687 | + <td>start |
| 688 | + |
| 689 | + <td>last |
| 690 | + |
| 691 | + <td>first-except |
| 692 | + |
| 693 | + <tr> |
| 694 | + <td>1 |
| 695 | + |
| 696 | + <td> |
| 697 | + <div class=pre><h1>Continents</h1> ... <h2>Africa</h2> ... |
| 698 | + ...</div> |
| 699 | + |
| 700 | + <td>Africa |
| 701 | + |
| 702 | + <td>Africa |
| 703 | + |
| 704 | + <td>Africa |
| 705 | + |
| 706 | + <td> |
| 707 | + |
| 708 | + <tr> |
| 709 | + <td>2 |
| 710 | + |
| 711 | + <td> |
| 712 | + <div class=pre>... <h2>Americas</h2> ... <h2>Asia</h2> ...</div> |
| 713 | + |
| 714 | + <td>Americas |
| 715 | + |
| 716 | + <td>Africa |
| 717 | + |
| 718 | + <td>Asia |
| 719 | + |
| 720 | + <td> |
| 721 | + |
| 722 | + <tr> |
| 723 | + <td>3 |
| 724 | + |
| 725 | + <td> |
| 726 | + <div class=pre>... ... ... ...</div> |
| 727 | + |
| 728 | + <td>Asia |
| 729 | + |
| 730 | + <td>Asia |
| 731 | + |
| 732 | + <td>Asia |
| 733 | + |
| 734 | + <td>Asia |
| 735 | + |
| 736 | + <tr> |
| 737 | + <td>4 |
| 738 | + |
| 739 | + <td> |
| 740 | + <div class=pre><h2>Europe</h2> ... <h2>Oceania</h2> ..</div> |
| 741 | + |
| 742 | + <td>Europe |
| 743 | + |
| 744 | + <td>Europe |
| 745 | + |
| 746 | + <td>Oceania |
| 747 | + |
| 748 | + <td> |
| 749 | + </table> |
| 750 | + </div> |
| 751 | + |
657 | 752 | <div class=example> |
658 | 753 | <p>In this example, the term that is being described at the start of the |
659 | 754 | page is shown in the top left header. |
|
0 commit comments