Skip to content

Commit de871fe

Browse files
committed
[css3-gcpm] rework example 3 to make it clearer
1 parent e23d178 commit de871fe

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

css-gcpm/Overview.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</p>
5555
<h1 class="p-name no-ref" id=title>CSS Generated Content for Paged Media Module</h1>
5656
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
57-
<span class=dt-updated><span class=value-title title=20140131>31 January 2014</span></span></span></h2>
57+
<span class=dt-updated><span class=value-title title=20140211>11 February 2014</span></span></span></h2>
5858
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css-gcpm/>http://dev.w3.org/csswg/css-gcpm/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css-gcpm/>http://dev.w3.org/csswg/css-gcpm/</a><dt>Previous Versions:<dd><a href=https://dvcs.w3.org/hg/csswg/raw-file/6a5c44d11c2b/css-gcpm/Overview.html rel=previous>https://dvcs.w3.org/hg/csswg/raw-file/6a5c44d11c2b/css-gcpm/Overview.html</a><dd><a href=http://www.w3.org/TR/2011/WD-css3-gcpm-20111129/ rel=previous>http://www.w3.org/TR/2011/WD-css3-gcpm-20111129/</a>
5959
<dt>Feedback:</dt>
6060
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-gcpm%5D%20feedback">www-style@w3.org</a>
@@ -301,18 +301,18 @@ <h4 class="heading settled heading" data-level=1.1.2 id=string-function><span cl
301301
margin: 1.5cm;
302302

303303
@top-left {
304-
content: "first: " string(title, first);
304+
content: "first: " string(heading, first);
305305
}
306306
@top-center {
307-
content: "start: " string(title, start);
307+
content: "start: " string(heading, start);
308308
}
309309
@top-right {
310-
content: "last: " string(title, last);
310+
content: "last: " string(heading, last);
311311
}
312312
}
313313

314-
h2 { string-set: title content() }
315-
</pre><p>The following figures show the first, start, and last assignments on various pages.
314+
h2 { string-set: heading content() }
315+
</pre><p>The following figures show the first, start, and last assignments of the “heading” string on various pages.
316316
</p><figure>
317317
<img alt="" src=using-strings-1.jpg width=480>
318318
<figcaption>The <a href=#string-start>start</a> value is empty, as the string had not yet been set at the start of the page.</figcaption>

css-gcpm/Overview.src.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,19 +160,19 @@ <h4 id="string-function">
160160
margin: 1.5cm;
161161

162162
@top-left {
163-
content: "first: " string(title, first);
163+
content: "first: " string(heading, first);
164164
}
165165
@top-center {
166-
content: "start: " string(title, start);
166+
content: "start: " string(heading, start);
167167
}
168168
@top-right {
169-
content: "last: " string(title, last);
169+
content: "last: " string(heading, last);
170170
}
171171
}
172172

173-
h2 { string-set: title content() }
173+
h2 { string-set: heading content() }
174174
</pre>
175-
The following figures show the first, start, and last assignments on various pages.
175+
The following figures show the first, start, and last assignments of the “heading” string on various pages.
176176
<figure>
177177
<img src="using-strings-1.jpg" width="480" alt=""/>
178178
<figcaption>The <a href="#string-start">start</a> value is empty, as the string had not yet been set at the start of the page.</figcaption>

css-gcpm/using-strings-1.jpg

148 KB
Loading

css-gcpm/using-strings-2.jpg

744 Bytes
Loading

css-gcpm/using-strings-3.jpg

-25 Bytes
Loading

0 commit comments

Comments
 (0)