Skip to content

Commit cbabf99

Browse files
committed
fixing typos, adding text on inline footnotes
1 parent abdf211 commit cbabf99

1 file changed

Lines changed: 24 additions & 20 deletions

File tree

css3-gcpm/Overview.src.html

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -287,22 +287,28 @@ <h4>Setting named strings: the 'string-set' property</h4>
287287
<dt>''env()''
288288

289289
<dd>This function returns data from the environment of the user at
290-
the time of formatting.
290+
the time of formatting. The function accepts one of these keywords:
291291

292-
<div class=example>
292+
<ul>
293+
<li>env(url): returns the URL of the document
294+
<li>env(date): returns the date on the user's system at the time of formatting
295+
<li>env(time): returns the time on the user's system at the time of formatting
296+
<li>env(date-time): returns the date and time on the user's system at the time of formatting
297+
</ul>
293298

294-
<p>Possible uses of this function are:
299+
<p class=note>Information about date and time is formatted according to the locale of the user. Implementors can get access to preformatted strings by way of the <a href="http://www.opengroup.org/onlinepubs/009695399/functions/strftime.html">strftime</a> function. The date, time and date-time strings can be found by using the "%x", "%X" and "%c" conversion strings, respectively.
300+
301+
<div class=example>
295302

296303
<pre>
304+
string-set: url env(url);
297305
string-set: date env(date);
298306
string-set: date env(time);
299307
string-set: date env(date-time);
300-
string-set: url env(url);
301308
</pre>
302309

303310
</div>
304311

305-
<p class=note>Information about date and time is formatted according to the locale of the user. Implementors can get access to preformatted strings by way of the <a href="http://www.opengroup.org/onlinepubs/009695399/functions/strftime.html">strftime</a> function. The date, time and date-time strings can be found by using the "%x", "%X" and "%c" conversion strings, respectively
306312

307313
</dl>
308314
</dl>
@@ -836,7 +842,7 @@ <h2>Footnotes</h2>
836842

837843
<pre>
838844
&lt;style>
839-
.footnote { float: footnote; display: block; }
845+
.footnote { float: footnote }
840846
&lt;/style>
841847

842848
&lt;p>A sentence consists of words. &lt;span class="footnote">Most often.&lt;/span>.
@@ -866,7 +872,6 @@ <h2>Footnotes</h2>
866872
@media print {
867873
.footnote {
868874
float: footnote;
869-
display: block;
870875
content: target-pull(attr(href, url)) }
871876
.call { display: none }
872877
}
@@ -900,7 +905,6 @@ <h2>Footnotes</h2>
900905
span[title]::after {
901906
content: attr(title);
902907
float: footnote;
903-
display: block;
904908
}
905909
</pre>
906910
</div>
@@ -916,45 +920,45 @@ <h3>Turning elements into footnotes</h3>
916920
<pre>
917921
span.footnote {
918922
float: footnote;
919-
display: block;
920923
}
921924
</pre>
922925
</div>
923926

924-
<p>The 'display' property determines how elements in the footnote area are displayed.
927+
<p>Footnote elements are presented inside the <em>footnote area</em>,
928+
but they inherit through their normal place in the structure of the
929+
document.
930+
931+
<p>The 'display' property on footnote elements is ignored. Instead,
932+
the value of the 'display' property in the @footnote context
933+
determines if footnotes are block or inline elements.
925934

926935
<div class="example">
927936
<p>In this example, the footnotes are displayed inline:
928937

929938
<pre>
939+
@footnote {
940+
display: inline;
941+
}
930942
span.footnote {
931943
float: footnote;
932-
display: inline; /* probably not necessary for &lt;span&gt; elements */
933944
}
934945
span.footnote::before {
935946
content: counter(footnote);
936947
}
937948
</pre>
949+
938950
<p>Here is one possible presentation of inline footnotes:
939951

940952
<pre>
941953
&#xB9; The first footnote. &#xBA; The second footnote.
942954
</pre>
943955
</div>
944956

945-
<p class=issue>Instead of relying on the 'display' property for each footnote element, there could be a setting in @footnote for this.
957+
<p class=issue>Another way to achieve this would be to introduce different keywords for inline and block footnotes (e.g., float: footnote-inline, float: footnote-block).
946958

947959
<p>For each new footnote element, the ''footnote'' counter is automatically
948960
incremented.
949961

950-
<p>Footnote elements are presented inside the <em>footnote area</em>,
951-
but they inherit through their normal place in the structure of the
952-
document.
953-
954-
<!--
955-
<p class="issue">There has been a number of proposals on how to achieve this, including ''position: footnote'', ''flow: footnote'', and ''display: footnote''. The current thinking is that 'float' is suitable as the content still takes up space.
956-
-->
957-
958962

959963
<h3>The footnote area</h3>
960964

0 commit comments

Comments
 (0)