Skip to content

Commit 27f70a7

Browse files
committed
[css-gcpm] Add UA stylesheet, update link to latinreq, replace faux-superscripts with real superscripts in default rendering of footnote-calls.
--HG-- extra : rebase_source : 43a35e31ed5f3bd0a5a45b7f48c4d540b78e55ad
1 parent 9ad53fb commit 27f70a7

2 files changed

Lines changed: 143 additions & 38 deletions

File tree

css-gcpm/Overview.html

Lines changed: 70 additions & 25 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=20140211>11 February 2014</span></span></span></h2>
57+
<span class=dt-updated><span class=value-title title=20140304>4 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>
@@ -166,7 +166,7 @@ <h2 class="no-num no-toc no-ref heading settled heading" id=contents><span class
166166
bookmark-label
167167
</a><li><a href=#bookmark-state><span class=secno>6.3</span>
168168
bookmark-state
169-
</a></ul><li><a href=#changes><span class=secno></span>Changes</a><li><a href=#acknowledgments><span class=secno></span>
169+
</a></ul><li><a href=#ua-stylesheet><span class=secno></span>Appendix A: Default UA Stylesheet</a><li><a href=#changes><span class=secno></span>Appendix B: Changes</a><li><a href=#acknowledgments><span class=secno></span>
170170
Acknowledgments
171171
</a><li><a href=#conformance><span class=secno></span>
172172
Conformance</a><ul class=toc><li><a href=#conventions><span class=secno></span>
@@ -250,7 +250,8 @@ <h5 class="heading settled heading" data-level=1.1.1.1 id=content-function-heade
250250
<dd>The first letter of the element, as defined for the <code><a href=http://www.w3.org/TR/css3-selectors/#first-letter>::first-letter</a></code> pseudo-element </dd>
251251
</dl>
252252

253-
<p>The content values of named strings are assigned at the point when the content box of the element is created (or would have been created if the element’s display value is none). The <dfn data-dfn-type=dfn data-noexport="" id=entry-value>entry value<a class=self-link href=#entry-value></a></dfn> for a page is the assignment in effect at the end of the previous page. The <dfn data-dfn-type=dfn data-noexport="" id=exit-value>exit value<a class=self-link href=#exit-value></a></dfn> for a page is the assignment in effect at the end of the current page.
253+
<p>The content values of named strings are assigned at the point when the content box of the element is first created (or would have been created if the element’s display value is none). The <dfn data-dfn-type=dfn data-noexport="" id=entry-value>entry value<a class=self-link href=#entry-value></a></dfn> for a page is the assignment in effect at the end of the previous page. The <dfn data-dfn-type=dfn data-noexport="" id=exit-value>exit value<a class=self-link href=#exit-value></a></dfn> for a page is the assignment in effect at the end of the current page.
254+
254255

255256

256257
<p>Whenever the value of the element changes, the value of the named string(s) is updated. User agents must be able to recall many values of the named string, as the <a class=css data-link-type=maybe href=#funcdef-string title=string()>string()</a> function can return past, current, or future values of the assignment.
@@ -287,13 +288,15 @@ <h4 class="heading settled heading" data-level=1.1.2 id=string-function><span cl
287288
<dt id=string-first><a class=self-link href=#string-first></a>first</dt>
288289
<dd>The value of the first assignment on the page is used. If there is no assignment on the page, the <a class=css data-link-type=maybe href=#entry-value title="entry value">entry value</a> is used. <code>first</code> is the default value.</dd>
289290
<dt id=string-start><a class=self-link href=#string-start></a>start</dt>
290-
<dd>If the element is the first element on the page, the value of the first assignment is used. Otherwise the <a class=css data-link-type=maybe href=#entry-value title="entry value">entry value</a> is used. The <a class=css data-link-type=maybe href=#entry-value title="entry value">entry value</a> may be empty if the element hasn’t yet appeared.</dd>
291+
<dd>If the element is the first element on the page, the value of the first assignment is used. Otherwise the <a class=css data-link-type=maybe href=#entry-value title="entry value">entry value</a> is used. The <a class=css data-link-type=maybe href=#entry-value title="entry value">entry value</a> may be empty if the element hasn’t yet appeared. </dd>
291292
<dt id=string-last><a class=self-link href=#string-last></a>last</dt>
292293
<dd>The <a class=css data-link-type=maybe href=#exit-value title="exit value">exit value</a> of the named string is used.</dd>
293294
<dt id=string-first-except><a class=self-link href=#string-first-except></a>first-except</dt>
294295
<dd>This is identical to <code>first</code>, except that the empty string is used on the page where the value is assigned.</dd>
295296
</dl>
296297

298+
299+
297300
<div class=example>
298301
CSS:
299302
<pre>@page {
@@ -328,6 +331,10 @@ <h4 class="heading settled heading" data-level=1.1.2 id=string-function><span cl
328331

329332
</div>
330333

334+
<div class=example>
335+
<pre>TK
336+
</pre></div>
337+
331338
<h3 class="heading settled heading" data-level=1.2 id=running-elements><span class=secno>1.2 </span><span class=content>
332339
Running elements
333340
</span><a class=self-link href=#running-elements></a></h3>
@@ -369,7 +376,7 @@ <h2 class="heading settled heading" data-level=2 id=footnotes><span class=secno>
369376

370377
<h3 class="heading settled heading" data-level=2.1 id=footnote-terms><span class=secno>2.1 </span><span class=content>Terminology</span><a class=self-link href=#footnote-terms></a></h3>
371378

372-
<p>Footnotes are <a href=http://w3c.github.io/dpub-pagination/index.html#footnotes>complex objects</a>, so it will be helpful to define some terms before proceeding.
379+
<p>Footnotes are complex objects (see the <a href=http://www.w3.org/TR/2014/WD-dpub-latinreq-20140313/#footnotes>footnote section</a> at <a data-biblio-type=informative data-link-type=biblio href=#dpub-latinreq title=dpub-latinreq>[dpub-latinreq]</a>), so it will be helpful to define some terms before proceeding.
373380

374381
</p><figure>
375382

@@ -432,19 +439,15 @@ <h3 class="heading settled heading" data-level=2.2 id=creating-footnotes><span c
432439
<h3 class="heading settled heading" data-level=2.3 id=footnote-types><span class=secno>2.3 </span><span class=content>
433440
Types of footnotes
434441
</span><a class=self-link href=#footnote-types></a></h3>
435-
The following new values of the <a class=property data-link-type=propdesc href=http://www.w3.org/TR/CSS21/visuren.html#propdef-float title=float>float</a> property create a footnote element:
442+
The following new value of the <a class=property data-link-type=propdesc href=http://www.w3.org/TR/CSS21/visuren.html#propdef-float title=float>float</a> property creates a footnote element:
436443

437-
<table class="definition propdef partial"><tr><th>Name:<td><a class=css-code data-link-type=property href=http://www.w3.org/TR/CSS21/visuren.html#propdef-float title=float>float</a><tr><th>New values:<td>footnote | inline-footnote<tr><th>Inherited:<td>no<tr><th>Percentages:<td>N/A<tr><th>Media:<td>paged<tr><th>Initial:<td>none<tr><th>Computed value:<td>specified value<tr><th>Applies to:<td>elements</table> <dl data-dfn-for=float data-dfn-type=value>
444+
<table class="definition propdef partial"><tr><th>Name:<td><a class=css-code data-link-type=property href=http://www.w3.org/TR/CSS21/visuren.html#propdef-float title=float>float</a><tr><th>New values:<td>footnote<tr><th>Inherited:<td>no<tr><th>Percentages:<td>N/A<tr><th>Media:<td>paged<tr><th>Initial:<td>none<tr><th>Computed value:<td>specified value<tr><th>Applies to:<td>elements</table> <dl data-dfn-for=float data-dfn-type=value>
438445
<dt><dfn class=css-code data-dfn-for=float data-dfn-type=value data-export="" id=valuedef-footnote>footnote<a class=self-link href=#valuedef-footnote></a></dfn></dt>
439446
<dd>each footnote element is placed in the footnote area of the page as a block element.</dd>
440-
<dt><dfn class=css-code data-dfn-for=float data-dfn-type=value data-export="" id=valuedef-inline-footnote>inline-footnote<a class=self-link href=#valuedef-inline-footnote></a></dfn></dt>
441-
<dd>each footnote element is placed in the footnote area of the page as an inline element.</dd>
442447

443448

444-
<figure>
445-
<img alt="inline footnotes" src=inline-footnote.jpg width=480>
446-
<figcaption>Inline footnotes</figcaption>
447-
</figure>
449+
450+
448451

449452
</dl>
450453

@@ -505,22 +508,23 @@ <h3 class="heading settled heading" data-level=2.6 id=footnote-call><span class=
505508
<div class=example>
506509
<pre>::footnote-call {
507510
content: counter(footnote);
508-
vertical-align: super;
509-
font-size: 65%;
511+
vertical-align: baseline;
512+
font-size: 100%;
513+
line-height: inherit;
514+
font-variant-position: super;
510515
}
511516
</pre> </div>
512-
<p class=issue id=issue-29d8a728><a class=self-link href=#issue-29d8a728></a>
513-
The previous ED required this to be styled as a “super-decimal” number, but I don’t think we need a dependency on that (and it’s been removed from CSS3-counter styles???).
517+
514518
<h3 class="heading settled heading" data-level=2.7 id=footnote-marker><span class=secno>2.7 </span><span class=content>
515519
The <code>footnote-marker</code> pseudo-element
516520
</span><a class=self-link href=#footnote-marker></a></h3>
517521
The <code>::footnote-marker</code> pseudo-element represents the footnote element’s marker, the number or symbol that identifies each footnote. This pseudo-element behaves like a <code>::marker</code> pseudo-element, as defined in <a data-biblio-type=informative data-link-type=biblio href=#css3list title=css3list>[CSS3LIST]</a>. It is placed at the beginning of the superior parent’s content, and is inline by default. The <code>::footnote-marker</code> can be styled just as other <code>::marker</code> elements can be. The default style should include <code>list-style-position: inside</code>.
518522
<div class=example>
519-
<pre>::footnote-call {
523+
<pre>::footnote-marker {
520524
content: counter(footnote);
521525
}
522526

523-
::footnote-call::after {
527+
::footnote-marker::after {
524528
content: '. ';
525529
}
526530
</pre> </div>
@@ -873,10 +877,54 @@ <h3 class="heading settled heading" data-level=6.3 id=bookmark-state><span class
873877
</dl>
874878

875879

880+
<h2 class="no-num heading settled heading" id=ua-stylesheet><span class=content>Appendix A: Default UA Stylesheet</span><a class=self-link href=#ua-stylesheet></a></h2>
881+
882+
<p>This appendix is informative, and is to help UA developers to implement a default stylesheet for HTML, but UA developers are free to ignore or modify as appropriate. </p>
883+
<div class=example>
884+
<pre>@page {
885+
counter-reset: footnote;
886+
@footnote {
887+
counter-increment: footnote;
888+
float: bottom;
889+
column-span: all;
890+
height: auto;
891+
}
892+
}
893+
894+
::footnote-marker {
895+
content: counter(footnote);
896+
list-style-position: inside;
897+
}
898+
899+
::footnote-marker::after {
900+
content: '. ';
901+
}
902+
903+
::footnote-call {
904+
content: counter(footnote);
905+
vertical-align: super;
906+
font-size: 65%;
907+
}
876908

909+
@supports ( font-variant-position: super ) {
910+
::footnote-call {
911+
content: counter(footnote);
912+
vertical-align: baseline;
913+
font-size: 100%;
914+
line-height: inherit;
915+
font-variant-position: super;
916+
}
917+
}
877918

919+
h1 { bookmark-level: 1 }
920+
h2 { bookmark-level: 2 }
921+
h3 { bookmark-level: 3 }
922+
h4 { bookmark-level: 4 }
923+
h5 { bookmark-level: 5 }
924+
h6 { bookmark-level: 6 }
925+
</pre></div>
878926

879-
<h2 class="no-num heading settled heading" id=changes><span class=content>Changes</span><a class=self-link href=#changes></a></h2>
927+
<h2 class="no-num heading settled heading" id=changes><span class=content>Appendix B: Changes</span><a class=self-link href=#changes></a></h2>
880928

881929
<p> Changes since the <a href=https://dvcs.w3.org/hg/csswg/raw-file/6a5c44d11c2b/css-gcpm/Overview.html>24 September 2013 Editor’s Draft</a> are:
882930

@@ -1130,7 +1178,7 @@ <h3 class="no-num no-ref heading settled heading" id=normative><span class=conte
11301178

11311179
<h3 class="no-num no-ref heading settled heading" id=informative><span class=content>
11321180
Informative References</span><a class=self-link href=#informative></a></h3>
1133-
<div data-fill-with=informative-references><dl><dt id=css21 title=CSS21><a class=self-link href=#css21></a>[CSS21]<dd>Bert Bos; et al. <a href=http://www.w3.org/TR/2011/REC-CSS2-20110607>Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. W3C Recommendation. URL: <a href=http://www.w3.org/TR/2011/REC-CSS2-20110607>http://www.w3.org/TR/2011/REC-CSS2-20110607</a><dt id=css3color title=CSS3COLOR><a class=self-link href=#css3color></a>[CSS3COLOR]<dd>Tantek Çelik; Chris Lilley; L. David Baron. <a href=http://www.w3.org/TR/2011/REC-css3-color-20110607>CSS Color Module Level 3</a>. 7 June 2011. W3C Recommendation. URL: <a href=http://www.w3.org/TR/2011/REC-css3-color-20110607>http://www.w3.org/TR/2011/REC-css3-color-20110607</a><dt id=css3list title=CSS3LIST><a class=self-link href=#css3list></a>[CSS3LIST]<dd>Tab Atkins Jr.. <a href=http://www.w3.org/TR/2011/WD-css3-lists-20110524>CSS Lists and Counters Module Level 3</a>. 24 May 2011. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2011/WD-css3-lists-20110524>http://www.w3.org/TR/2011/WD-css3-lists-20110524</a><dt id=css3page title=CSS3PAGE><a class=self-link href=#css3page></a>[CSS3PAGE]<dd>Melinda Grant; et al. <a href=http://www.w3.org/TR/2013/WD-css3-page-20130314/>CSS Paged Media Module Level 3</a>. 14 March 2013. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2013/WD-css3-page-20130314/>http://www.w3.org/TR/2013/WD-css3-page-20130314/</a><dt id=css3syn title=CSS3SYN><a class=self-link href=#css3syn></a>[CSS3SYN]<dd>L. David Baron. <a href=http://www.w3.org/TR/2003/WD-css3-syntax-20030813>CSS3 module: Syntax</a>. 13 August 2003. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2003/WD-css3-syntax-20030813>http://www.w3.org/TR/2003/WD-css3-syntax-20030813</a><dt id=css3val title=CSS3VAL><a class=self-link href=#css3val></a>[CSS3VAL]<dd>Håkon Wium Lie; Tab Atkins; Elika J. Etemad. <a href=http://www.w3.org/TR/2013/CR-css3-values-20130730/>CSS Values and Units Module Level 3</a>. 30 July 2013. W3C Candidate Recommendation. (Work in progress.) URL: <a href=http://www.w3.org/TR/2013/CR-css3-values-20130730/>http://www.w3.org/TR/2013/CR-css3-values-20130730/</a></dl></div>
1181+
<div data-fill-with=informative-references><dl><dt id=css21 title=CSS21><a class=self-link href=#css21></a>[CSS21]<dd>Bert Bos; et al. <a href=http://www.w3.org/TR/2011/REC-CSS2-20110607>Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. W3C Recommendation. URL: <a href=http://www.w3.org/TR/2011/REC-CSS2-20110607>http://www.w3.org/TR/2011/REC-CSS2-20110607</a><dt id=css3color title=CSS3COLOR><a class=self-link href=#css3color></a>[CSS3COLOR]<dd>Tantek Çelik; Chris Lilley; L. David Baron. <a href=http://www.w3.org/TR/2011/REC-css3-color-20110607>CSS Color Module Level 3</a>. 7 June 2011. W3C Recommendation. URL: <a href=http://www.w3.org/TR/2011/REC-css3-color-20110607>http://www.w3.org/TR/2011/REC-css3-color-20110607</a><dt id=css3list title=CSS3LIST><a class=self-link href=#css3list></a>[CSS3LIST]<dd>Tab Atkins Jr.. <a href=http://www.w3.org/TR/2011/WD-css3-lists-20110524>CSS Lists and Counters Module Level 3</a>. 24 May 2011. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2011/WD-css3-lists-20110524>http://www.w3.org/TR/2011/WD-css3-lists-20110524</a><dt id=css3page title=CSS3PAGE><a class=self-link href=#css3page></a>[CSS3PAGE]<dd>Melinda Grant; et al. <a href=http://www.w3.org/TR/2013/WD-css3-page-20130314/>CSS Paged Media Module Level 3</a>. 14 March 2013. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2013/WD-css3-page-20130314/>http://www.w3.org/TR/2013/WD-css3-page-20130314/</a><dt id=css3syn title=CSS3SYN><a class=self-link href=#css3syn></a>[CSS3SYN]<dd>L. David Baron. <a href=http://www.w3.org/TR/2003/WD-css3-syntax-20030813>CSS3 module: Syntax</a>. 13 August 2003. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2003/WD-css3-syntax-20030813>http://www.w3.org/TR/2003/WD-css3-syntax-20030813</a><dt id=css3val title=CSS3VAL><a class=self-link href=#css3val></a>[CSS3VAL]<dd>Håkon Wium Lie; Tab Atkins; Elika J. Etemad. <a href=http://www.w3.org/TR/2013/CR-css3-values-20130730/>CSS Values and Units Module Level 3</a>. 30 July 2013. W3C Candidate Recommendation. (Work in progress.) URL: <a href=http://www.w3.org/TR/2013/CR-css3-values-20130730/>http://www.w3.org/TR/2013/CR-css3-values-20130730/</a><dt id=dpub-latinreq title=dpub-latinreq><a class=self-link href=#dpub-latinreq></a>[dpub-latinreq]<dd>Dave Cramer. <a href=http://www.w3.org/TR/2014/WD-dpub-latinreq/>Requirements for Latin Text Layout and Pagination</a>. FPWD. URL: <a href=http://www.w3.org/TR/2014/WD-dpub-latinreq/>http://www.w3.org/TR/2014/WD-dpub-latinreq/</a></dl></div>
11341182

11351183
<h2 class="no-num no-ref heading settled heading" id=index><span class=content>
11361184
Index</span><a class=self-link href=#index></a></h2>
@@ -1148,7 +1196,6 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
11481196
<li>footnote, <a href=#valuedef-footnote title="section 2.3">2.3</a>
11491197
<li>footnote counter, <a href=#footnote-counter title="section 2.5">2.5</a>
11501198
<li>footnote-policy, <a href=#propdef-footnote-policy title="section 2.8">2.8</a>
1151-
<li>inline-footnote, <a href=#valuedef-inline-footnote title="section 2.3">2.3</a>
11521199
<li>leader(), <a href=#funcdef-leader title="section 4">4</a>
11531200
<li>line, <a href=#footnote-policy-line title="section 2.8">2.8</a>
11541201
<li>named string, <a href=#named-string title="section 1">1</a>
@@ -1179,9 +1226,7 @@ <h2 class="no-num heading settled" id=issues-index><span class=content>Issues In
11791226

11801227
<div class=issue>Implementations that support footnotes generally support page floats like <code>float: bottom</code>. Page floats should end up above the footnote area. How might this be specified?<a href=#issue-165f8769></a></div>
11811228

1182-
<div class=issue>
1183-
The previous ED required this to be styled as a “super-decimal” number, but I don’t think we need a dependency on that (and it’s been removed from CSS3-counter styles???).
1184-
<a href=#issue-29d8a728></a></div><div class=issue>We need an algorithm for laying out footnotes<a href=#issue-da883bb8></a></div>
1229+
<div class=issue>We need an algorithm for laying out footnotes<a href=#issue-da883bb8></a></div>
11851230

11861231
<div class=issue>
11871232
Do leaders depend on the assumption that the content after the leader is right-aligned (end-aligned)?

0 commit comments

Comments
 (0)