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: css-content-3/Overview.bs
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -137,14 +137,14 @@ Inserting and Replacing Content: the 'content' property</h2>
137
137
138
138
<p class=all-media>User agents are expected to support this property on all media, including non-visual ones.</p>
139
139
140
-
The 'content' property dictates what is rendered inside an element or pseudo-element.
140
+
The 'content' property dictates what is rendered inside an element or [=pseudo-element=].
141
141
142
142
For elements, it has only one purpose:
143
143
specifying that the element renders as normal,
144
144
or replacing the element with an image
145
145
(and possibly some associated "alt text").
146
146
147
-
For pseudo-elements and margin boxes,
147
+
For [=pseudo-elements=] and margin boxes,
148
148
it is more powerful.
149
149
It controls whether the element renders at all,
150
150
can replace the element with an image,
@@ -179,7 +179,7 @@ Inserting and Replacing Content: the 'content' property</h2>
179
179
180
180
<pre class=prod><<image>></pre>
181
181
182
-
Makes the element or pseudo-element a <a href="https://www.w3.org/TR/CSS2/conform.html#replaced-element">replaced element</a>,
182
+
Makes the element or [=pseudo-element=] a <a href="https://www.w3.org/TR/CSS2/conform.html#replaced-element">replaced element</a>,
183
183
filled with the specified <<image>>.
184
184
Its normal contents are suppressed
185
185
and do not generate boxes,
@@ -196,7 +196,7 @@ Inserting and Replacing Content: the 'content' property</h2>
196
196
Note: Replaced elements use different layout rules than normal elements.
197
197
(In effect, it becomes equivalent to an HTML <{img}> element.)
198
198
199
-
Note: Replaced elements do not have ''::before'' or ''::after'' pseudo-elements;
199
+
Note: Replaced elements do not have ''::before'' or ''::after''[=pseudo-elements=];
200
200
the 'content' property replaces their entire contents.
201
201
202
202
ISSUE(2889): This value has historically been treated as <<content-list>> on ''::before'' and ''::after''.
@@ -293,7 +293,7 @@ Alternative Text for Accessibility</h3>
293
293
</div>
294
294
295
295
<div class="example">
296
-
If the pseudo-element is purely decorative and its function is covered elsewhere, setting alt to the empty string can avoid reading out the decorative element. Here the ARIA attribute will be spoken as "collapsed". Without the empty string alt value, the content would also be spoken as "Black right-pointing pointer".
296
+
If the [=pseudo-element=] is purely decorative and its function is covered elsewhere, setting alt to the empty string can avoid reading out the decorative element. Here the ARIA attribute will be spoken as "collapsed". Without the empty string alt value, the content would also be spoken as "Black right-pointing pointer".
297
297
298
298
<pre>
299
299
.expandable::before {
@@ -386,7 +386,7 @@ Elemental Content: the ''contents'' keyword</h3>
386
386
Note that this is the default,
387
387
since the initial value of 'content' is ''content/normal''
388
388
and ''content/normal'' computes to ''content/contents'' on an element.
389
-
: If set on one of the element's other pseudo-elements:
389
+
: If set on one of the element's other [=pseudo-elements=]:
390
390
:: Check to see that it is not set on a "previous" pseudo-element, in the following order, depth first:
391
391
392
392
1. the element itself
@@ -409,7 +409,7 @@ Elemental Content: the ''contents'' keyword</h3>
409
409
</pre>
410
410
411
411
...the element's 'content' property would compute to ''content/contents''
412
-
and the afterpseudoelement would have no contents
412
+
and the ''::after''[=pseudo-element=] would have no contents
413
413
(equivalent to ''content/none'')
414
414
and thus would not appear.
415
415
@@ -1087,7 +1087,7 @@ Naming Strings: the 'string-set' property</h4>
1087
1087
Name: string-set
1088
1088
Value: none | [ <<custom-ident>> <<string>>+ ]#
1089
1089
Initial: none
1090
-
Applies to: all elements, but not pseudo-elements
1090
+
Applies to: all elements, but not [=pseudo-elements=]
1091
1091
Inherited: no
1092
1092
Percentages: N/A
1093
1093
Computed value: the keyword ''string-set/none'' or a list, each item an identifier paired with a list of string values
@@ -1248,16 +1248,16 @@ The ''content()'' function</h4>
1248
1248
it acts as if ''content()/text'' were specified.
1249
1249
1250
1250
<dt><dfn>before</dfn>
1251
-
<dd>The string value of the ''::before'' pseudo-element.
1251
+
<dd>The string value of the ''::before''[=pseudo-element=].
1252
1252
1253
1253
<dt><dfn>after</dfn>
1254
-
<dd>The string value of the ''::after'' pseudo-element.
1254
+
<dd>The string value of the ''::after''[=pseudo-element=].
1255
1255
1256
1256
<dt><dfn>first-letter</dfn>
1257
-
<dd>The first letter of the element, as defined for the ''::first-letter'' pseudo-element
1257
+
<dd>The first letter of the element, as defined for the ''::first-letter''[=pseudo-element=]
1258
1258
1259
1259
<dt><dfn>marker</dfn>
1260
-
<dd>The string value of the ''::marker'' pseudo-element.
1260
+
<dd>The string value of the ''::marker''[=pseudo-element=].
A <dfn>scroll marker</dfn> is any element or pseudo-element with a [=scroll target=].
195
+
A <dfn>scroll marker</dfn> is any element or [=pseudo-element=] with a [=scroll target=].
196
196
An element or pseudo-element's <dfn>scroll target</dfn> is the {{Element}} indicated by the [=scroll marker=].
197
197
Which elements are [=scroll markers=], and what their [=scroll targets=] are, is host-language defined.
198
198
The [[html#the-a-element|HTML <a> element]] and [[svg2#Links|SVG <a> element]]
@@ -218,7 +218,7 @@ Scroll marker grouping</h4>
218
218
219
219
The 'scroll-target-group' property determines whether an element establishes a <dfn>scroll marker group container</dfn> containing [=scroll marker=] elements forming a [=scroll marker group=].
220
220
221
-
A ''::scroll-marker-group'' pseudo-element is the [=scroll marker group container=] for its contained ''::scroll-marker'' pseudo-elements, which form a [=scroll marker group=] together.
221
+
A ''::scroll-marker-group''[=pseudo-element=] is the [=scroll marker group container=] for its contained ''::scroll-marker'' pseudo-elements, which form a [=scroll marker group=] together.
222
222
223
223
<h4 id="scroll-target-group">
224
224
The 'scroll target group' property</h4>
@@ -299,7 +299,7 @@ The 'scroll-marker-group' property</h4>
299
299
Canonical Order: per grammar
300
300
</pre>
301
301
302
-
The 'scroll-marker-group' property specifies whether the [=scroll container=] should have a '::scroll-marker-group' pseudo-element created,
302
+
The 'scroll-marker-group' property specifies whether the [=scroll container=] should have a '::scroll-marker-group'[=pseudo-element=] created,
303
303
and its position relative to the scroll container.
304
304
305
305
<dl dfn-type=value dfn-for=scroll-marker-group>
@@ -334,7 +334,7 @@ The 'scroll-marker-group' property</h4>
334
334
or immediately following (if ''scroll-marker-group: after'').
335
335
336
336
The following additions are recommended for the default UA stylesheet
337
-
to ensure that the generation of scroll marker pseudo-elements does not invalidate the layout of the site:
337
+
to ensure that the generation of scroll marker [=pseudo-elements=] does not invalidate the layout of the site:
338
338
339
339
<pre class="lang-css">
340
340
/* The generation of ::scroll-marker pseudo-elements shouldn't
@@ -807,9 +807,9 @@ Channeling Overflow: the 'continue' property</h3>
807
807
See <a href="#fragment-overflow">fragment overflow</a>.
808
808
</dl>
809
809
810
-
The computed value of the 'continue' for a given element or pseudoelement is determined as follow:
810
+
The computed value of the 'continue' for a given element or [=pseudo-element=] is determined as follow:
811
811
812
-
1. On elements or pseudoelements with <a>layout containment</a> (see [[!CSS-CONTAIN-1]]),
812
+
1. On elements or pseudo-elements with <a>layout containment</a> (see [[!CSS-CONTAIN-1]]),
813
813
if the specified value is ''continue/auto'' or ''continue/fragments''
814
814
then the computed value is ''continue/overflow''.
815
815
@@ -829,7 +829,7 @@ Channeling Overflow: the 'continue' property</h3>
829
829
830
830
4. In all other cases, the computed value is the specified value
831
831
832
-
Issue: If we introduce a pseudoelement that can select columns in a multicol,
832
+
Issue: If we introduce a pseudo-element that can select columns in a multicol,
833
833
we would need to specify that auto computes to auto on it,
834
834
or introduce a new value and have auto compute to that
835
835
(but what would that value compute to on things that aren't columns?).
@@ -863,7 +863,7 @@ Paginated overflow</h3>
863
863
864
864
Issue: Traditional pagination (e.g. when printing) assumes that
865
865
:root is contained in the page box,
866
-
rather than having the page box be a pseudoelement child of :root.
866
+
rather than having the page box be a pseudo-element child of :root.
867
867
Can we work around that using something similar to fragment boxes?
868
868
Or maybe by having a fragment box (reproducing :root) inside a page box inside :root?
869
869
@@ -1058,7 +1058,7 @@ Fragmented Overflow</h3>
1058
1058
<h4 id="fragment-pseudo-element">
1059
1059
The ''::nth-fragment()'' pseudo-element</h4>
1060
1060
1061
-
The <dfn selector>::nth-fragment()</dfn> pseudo-element
1061
+
The <dfn selector>::nth-fragment()</dfn>[=pseudo-element=]
1062
1062
is a pseudo-element
1063
1063
that describes some of the <a>fragment box</a>es generated by an element.
1064
1064
The argument to the pseudo-element takes the same syntax
@@ -1088,7 +1088,7 @@ Styling of fragments</h4>
1088
1088
then stricter property restrictions would be needed
1089
1089
for continue:paginate.)
1090
1090
1091
-
In the absence of rules with ''::nth-fragment()'' pseudo-elements,
1091
+
In the absence of rules with ''::nth-fragment()''[=pseudo-elements=],
1092
1092
the computed style for each <a>fragment box</a>
1093
1093
is the computed style for the element
1094
1094
for which the <a>fragment box</a> was created.
@@ -1144,7 +1144,7 @@ Styling of fragments</h4>
1144
1144
</table>
1145
1145
</div>
1146
1146
1147
-
Styling an ''::nth-fragment()'' pseudo-element with the 'continue'
1147
+
Styling an ''::nth-fragment()''[=pseudo-element=] with the 'continue'
1148
1148
property does take effect;
1149
1149
if a <a>fragment box</a> has a
1150
1150
computed value of 'continue' other than ''fragments''
@@ -1174,7 +1174,7 @@ Styling of fragments</h4>
1174
1174
applies to block containers, flex containers, and grid containers).
1175
1175
<span class="issue">Need to specify exactly how this works</span>
1176
1176
1177
-
To match the model for other pseudo-elements
1177
+
To match the model for other [=pseudo-elements=]
1178
1178
where the pseudo-elements live inside their corresponding element,
1179
1179
declarations in ''::nth-fragment()'' pseudo-elements override
1180
1180
declarations in rules without the pseudo-element.
@@ -1233,7 +1233,7 @@ Styling of fragments</h4>
1233
1233
Issue: Should this apply to continue:fragments only,
1234
1234
or also to continue:paginate?
1235
1235
1236
-
The ''::nth-fragment()'' pseudo-element
1236
+
The ''::nth-fragment()''[=pseudo-element=]
1237
1237
can also be used to style
1238
1238
content inside of a <a>fragment box</a>.
1239
1239
Unlike the ''::first-line'' and ''::first-letter'' pseudo-elements,
0 commit comments