You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css3-gcpm/Overview.src.html
+24-20Lines changed: 24 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -287,22 +287,28 @@ <h4>Setting named strings: the 'string-set' property</h4>
287
287
<dt>''env()''
288
288
289
289
<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:
291
291
292
-
<divclass=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>
293
298
294
-
<p>Possible uses of this function are:
299
+
<pclass=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 <ahref="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
+
<divclass=example>
295
302
296
303
<pre>
304
+
string-set: url env(url);
297
305
string-set: date env(date);
298
306
string-set: date env(time);
299
307
string-set: date env(date-time);
300
-
string-set: url env(url);
301
308
</pre>
302
309
303
310
</div>
304
311
305
-
<pclass=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 <ahref="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
306
312
307
313
</dl>
308
314
</dl>
@@ -836,7 +842,7 @@ <h2>Footnotes</h2>
836
842
837
843
<pre>
838
844
<style>
839
-
.footnote { float: footnote; display: block; }
845
+
.footnote { float: footnote }
840
846
</style>
841
847
842
848
<p>A sentence consists of words. <span class="footnote">Most often.</span>.
@@ -866,7 +872,6 @@ <h2>Footnotes</h2>
866
872
@media print {
867
873
.footnote {
868
874
float: footnote;
869
-
display: block;
870
875
content: target-pull(attr(href, url)) }
871
876
.call { display: none }
872
877
}
@@ -900,7 +905,6 @@ <h2>Footnotes</h2>
900
905
span[title]::after {
901
906
content: attr(title);
902
907
float: footnote;
903
-
display: block;
904
908
}
905
909
</pre>
906
910
</div>
@@ -916,45 +920,45 @@ <h3>Turning elements into footnotes</h3>
916
920
<pre>
917
921
span.footnote {
918
922
float: footnote;
919
-
display: block;
920
923
}
921
924
</pre>
922
925
</div>
923
926
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.
925
934
926
935
<divclass="example">
927
936
<p>In this example, the footnotes are displayed inline:
928
937
929
938
<pre>
939
+
@footnote {
940
+
display: inline;
941
+
}
930
942
span.footnote {
931
943
float: footnote;
932
-
display: inline; /* probably not necessary for <span> elements */
933
944
}
934
945
span.footnote::before {
935
946
content: counter(footnote);
936
947
}
937
948
</pre>
949
+
938
950
<p>Here is one possible presentation of inline footnotes:
939
951
940
952
<pre>
941
953
¹ The first footnote. º The second footnote.
942
954
</pre>
943
955
</div>
944
956
945
-
<pclass=issue>Instead of relying on the 'display' property for each footnote element, there could be a setting in @footnote for this.
957
+
<pclass=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).
946
958
947
959
<p>For each new footnote element, the ''footnote'' counter is automatically
948
960
incremented.
949
961
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.
0 commit comments