Skip to content

Commit e4fe1f2

Browse files
committed
[css-gcpm] add section on alternative syntax for running elements proposed by Bert Bos
--HG-- extra : rebase_source : 6bd1d1383516a67be405ff837593370acdb2ff2f
1 parent 2346a0f commit e4fe1f2

2 files changed

Lines changed: 80 additions & 4 deletions

File tree

css-gcpm/Overview.html

Lines changed: 37 additions & 4 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=20140305>5 March 2014</span></span></span></h2>
57+
<span class=dt-updated><span class=value-title title=20140311>11 March 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>
@@ -120,7 +120,7 @@ <h2 class="no-num no-toc no-ref heading settled heading" id=contents><span class
120120
Running elements
121121
</a><ul class=toc><li><a href=#running-syntax><span class=secno>1.2.1</span>
122122
The <span class=css data-link-type=maybe title=running()>running()</span> value
123-
</a><li><a href=#element-syntax><span class=secno>1.2.2</span>
123+
</a><li><a href=#alternative-syntax-running><span class=secno>1.2.2</span>Alternative Proposal from Bert Bos</a><li><a href=#element-syntax><span class=secno>1.2.3</span>
124124
The <span class=css data-link-type=maybe title=element()>element()</span> value
125125
</a></ul></ul><li><a href=#footnotes><span class=secno>2</span>
126126
Footnotes
@@ -358,8 +358,39 @@ <h4 class="heading settled heading" data-level=1.2.1 id=running-syntax><span cla
358358

359359
<pre class=prod> <dfn class=css-code data-dfn-type=function data-export="" id=funcdef-running>running()<a class=self-link href=#funcdef-running></a></dfn> = string( <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#identifier-value title="<custom-ident>">&lt;custom-ident&gt;</a> )
360360
</pre>
361+
<h4 class="heading settled heading" data-level=1.2.2 id=alternative-syntax-running><span class=secno>1.2.2 </span><span class=content>Alternative Proposal from Bert Bos</span><a class=self-link href=#alternative-syntax-running></a></h4>
361362

362-
<h4 class="heading settled heading" data-level=1.2.2 id=element-syntax><span class=secno>1.2.2 </span><span class=content>
363+
<p>Bert Bos has proposed an alternative syntax, which allows both moving and copying elements into running heads. In the example below, h2 elements appear in their normal place in the document, but are also copied into running heads.
364+
365+
<div class=example>
366+
<pre>
367+
h2 {
368+
display: block;
369+
running: chapter;
370+
font-size: 18pt;
371+
font-weight: bold;
372+
}
373+
374+
h2:running {
375+
display: inline;
376+
font-size: 11pt;
377+
font-weight: normal;
378+
font-variant: small-caps;
379+
letter-spacing: 1pt;
380+
}
381+
382+
@page {
383+
@top-center {
384+
content: element(chapter);
385+
}
386+
}
387+
</pre></div>
388+
389+
390+
<table class="definition propdef"><tr><th>Name:<td><dfn class=css-code data-dfn-type=property data-export="" id=propdef-running>running<a class=self-link href=#propdef-running></a></dfn><tr><th>Value:<td><a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#identifier-value title="<custom-ident>">&lt;custom-ident&gt;</a><tr><th>Initial:<td>none<tr><th>Applies to:<td>elements<tr><th>Inherited:<td>no<tr><th>Media:<td>all<tr><th>Computed value:<td>specified value<tr><th>Percentages:<td>N/A</table>
391+
392+
393+
<h4 class="heading settled heading" data-level=1.2.3 id=element-syntax><span class=secno>1.2.3 </span><span class=content>
363394
The <a class=css data-link-type=maybe href=#funcdef-element title=element()>element()</a> value
364395
</span><a class=self-link href=#element-syntax></a></h4>
365396

@@ -1241,7 +1272,7 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
12411272
<li>compact, <a href=#footnote-display-compact title="section 2.3">2.3</a>
12421273
<li>content(), <a href=#funcdef-content title="section 1.1.1.1">1.1.1.1</a>
12431274
<li>content-list, <a href=#content-list title="section 1.1.1">1.1.1</a>
1244-
<li>element(), <a href=#funcdef-element title="section 1.2.2">1.2.2</a>
1275+
<li>element(), <a href=#funcdef-element title="section 1.2.3">1.2.3</a>
12451276
<li>entry value, <a href=#entry-value title="section 1.1.1.1">1.1.1.1</a>
12461277
<li>exit value, <a href=#exit-value title="section 1.1.1.1">1.1.1.1</a>
12471278
<li>footnote, <a href=#valuedef-footnote title="section 2.3">2.3</a>
@@ -1256,6 +1287,7 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
12561287
<li>page group, <a href=#page-group title="section 3.2">3.2</a>
12571288
<li>page selectors, <a href=#page-selectors0 title="section 3">3</a>
12581289
<li>running(), <a href=#funcdef-running title="section 1.2.1">1.2.1</a>
1290+
<li>running, <a href=#propdef-running title="section 1.2.2">1.2.2</a>
12591291
<li>Running elements, <a href=#running-elements0 title="section 1">1</a>
12601292
<li>string(), <a href=#funcdef-string title="section 1.1.2">1.1.2</a>
12611293
<li>string-set, <a href=#propdef-string-set title="section 1.1.1">1.1.1</a>
@@ -1268,6 +1300,7 @@ <h2 class="no-num no-ref heading settled heading" id=property-index><span class=
12681300
Property index</span><a class=self-link href=#property-index></a></h2>
12691301
<div data-fill-with=property-index><table class="proptable data"><thead><tr><th scope=col>Name<th scope=col>Value<th scope=col>Initial<th scope=col>Applies to<th scope=col>Inh.<th scope=col>%ages<th scope=col>Media<th scope=col>Computed value<tbody>
12701302
<tr><th scope=row><a data-property="">string-set</a><td>[[ &lt;custom-ident&gt; &lt;content-list&gt;] [, &lt;custom-ident&gt; &lt;content-list&gt;]* ] | none<td>none<td>all elements, but not pseudo-elements<td>no<td>N/A<td>all<td>specified value
1303+
<tr><th scope=row><a data-property="">running</a><td>&lt;custom-ident&gt;<td>none<td>elements<td>no<td>N/A<td>all<td>specified value
12711304
<tr><th scope=row><a data-property="">footnote-display</a><td>block | inline | compact<td>block<td>elements<td>no<td>N/A<td>paged<td>specified value
12721305
<tr><th scope=row><a data-property="">footnote-policy</a><td>auto | line | block<td>auto<td>elements<td>no<td>N/A<td>paged<td>specified value
12731306
<tr><th scope=row><a data-property="">bookmark-level</a><td>none | &lt;integer&gt;<td>none<td>all elements<td>no<td>N/A<td>paged<td>specified value

css-gcpm/Overview.src.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,49 @@ <h4 id="running-syntax">
233233
<dfn>running()</dfn> = string( <<custom-ident>> )
234234
</pre>
235235

236+
<h4 id="alternative-syntax-running">Alternative Proposal from Bert Bos</h4>
237+
238+
Bert Bos has proposed an alternative syntax, which allows both moving and copying elements into running heads. In the example below, h2 elements appear in their normal place in the document, but are also copied into running heads.
239+
240+
<div class="example">
241+
<pre>
242+
243+
h2 {
244+
display: block;
245+
running: chapter;
246+
font-size: 18pt;
247+
font-weight: bold;
248+
}
249+
250+
h2:running {
251+
display: inline;
252+
font-size: 11pt;
253+
font-weight: normal;
254+
font-variant: small-caps;
255+
letter-spacing: 1pt;
256+
}
257+
258+
@page {
259+
@top-center {
260+
content: element(chapter);
261+
}
262+
}
263+
</pre>
264+
</div>
265+
266+
267+
<pre class="propdef">
268+
Name: <dfn id="running-property">running</dfn>
269+
Value: <<custom-ident>>
270+
Initial: none
271+
Applies to: elements
272+
Inherited: no
273+
Percentages: N/A
274+
Media: all
275+
Computed value: specified value
276+
</pre>
277+
278+
236279

237280
<h4 id="element-syntax">
238281
The ''element()'' value

0 commit comments

Comments
 (0)