Skip to content

Commit a34e3ca

Browse files
committed
[selectors-4][editorial] Unified the spelling of 'pseudo-element(s)' and added references
1 parent cf19d54 commit a34e3ca

File tree

8 files changed

+81
-81
lines changed

8 files changed

+81
-81
lines changed

css-contain-1/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ Size Containment</h3>
534534
The [=used value|used=] 'width' and 'height' of the [=size containment box|containment box=]
535535
are determined as if performing a normal layout of the box,
536536
except that it is treated as having no content--
537-
not even through pseudo elements such as ''::before'', ''::after'', or ''::marker''.
537+
not even through [=pseudo-elements=] such as ''::before'', ''::after'', or ''::marker''.
538538

539539
<wpt>
540540
contain-size-021.html
@@ -609,7 +609,7 @@ Size Containment</h3>
609609
<dt><dfn>Laying out in-place</dfn>
610610
<dd>
611611
The [=size containment box|containment box=]'s content
612-
(including any pseudo-elements)
612+
(including any [=pseudo-elements=])
613613
must then be laid out into
614614
the now fixed-size [=size containment box|containment box=] normally.
615615

css-contain-2/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ Size Containment</h3>
626626
The [=used value|used=] 'width' and 'height' of the [=size containment box|containment box=]
627627
are determined as if performing a normal layout of the box,
628628
except that it is treated as having no content--
629-
not even through pseudo elements such as ''::before'', ''::after'', or ''::marker''.
629+
not even through [=pseudo-elements=] such as ''::before'', ''::after'', or ''::marker''.
630630

631631
<wpt>
632632
contain-size-021.html
@@ -701,7 +701,7 @@ Size Containment</h3>
701701
<dt><dfn>Laying out in-place</dfn>
702702
<dd>
703703
The [=size containment box|containment box=]'s content
704-
(including any pseudo-elements)
704+
(including any [=pseudo-elements=])
705705
must then be laid out into
706706
the now fixed-size [=size containment box|containment box=] normally.
707707

@@ -1355,7 +1355,7 @@ Style Containment</h3>
13551355

13561356
Here, the style-contained element still interacts with the ''foo'' counter normally,
13571357
incrementing it to 2.
1358-
Its ''::before'' pseudo-element,
1358+
Its ''::before'' [=pseudo-element=],
13591359
which is effectively a child and thus within the containment boundary,
13601360
can still see that counter normally,
13611361
and thus will render the string "<code>2</code>".

css-content-3/Overview.bs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ Inserting and Replacing Content: the 'content' property</h2>
137137

138138
<p class=all-media>User agents are expected to support this property on all media, including non-visual ones.</p>
139139

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=].
141141

142142
For elements, it has only one purpose:
143143
specifying that the element renders as normal,
144144
or replacing the element with an image
145145
(and possibly some associated "alt text").
146146

147-
For pseudo-elements and margin boxes,
147+
For [=pseudo-elements=] and margin boxes,
148148
it is more powerful.
149149
It controls whether the element renders at all,
150150
can replace the element with an image,
@@ -179,7 +179,7 @@ Inserting and Replacing Content: the 'content' property</h2>
179179

180180
<pre class=prod><<image>></pre>
181181

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>,
183183
filled with the specified <<image>>.
184184
Its normal contents are suppressed
185185
and do not generate boxes,
@@ -196,7 +196,7 @@ Inserting and Replacing Content: the 'content' property</h2>
196196
Note: Replaced elements use different layout rules than normal elements.
197197
(In effect, it becomes equivalent to an HTML <{img}> element.)
198198

199-
Note: Replaced elements do not have ''::before'' or ''::after'' pseudo-elements;
199+
Note: Replaced elements do not have ''::before'' or ''::after'' [=pseudo-elements=];
200200
the 'content' property replaces their entire contents.
201201

202202
ISSUE(2889): This value has historically been treated as <<content-list>> on ''::before'' and ''::after''.
@@ -293,7 +293,7 @@ Alternative Text for Accessibility</h3>
293293
</div>
294294

295295
<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".
297297

298298
<pre>
299299
.expandable::before {
@@ -386,7 +386,7 @@ Elemental Content: the ''contents'' keyword</h3>
386386
Note that this is the default,
387387
since the initial value of 'content' is ''content/normal''
388388
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=]:
390390
:: Check to see that it is not set on a "previous" pseudo-element, in the following order, depth first:
391391

392392
1. the element itself
@@ -409,7 +409,7 @@ Elemental Content: the ''contents'' keyword</h3>
409409
</pre>
410410

411411
...the element's 'content' property would compute to ''content/contents''
412-
and the after pseudo element would have no contents
412+
and the ''::after'' [=pseudo-element=] would have no contents
413413
(equivalent to ''content/none'')
414414
and thus would not appear.
415415

@@ -1087,7 +1087,7 @@ Naming Strings: the 'string-set' property</h4>
10871087
Name: string-set
10881088
Value: none | [ <<custom-ident>> <<string>>+ ]#
10891089
Initial: none
1090-
Applies to: all elements, but not pseudo-elements
1090+
Applies to: all elements, but not [=pseudo-elements=]
10911091
Inherited: no
10921092
Percentages: N/A
10931093
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>
12481248
it acts as if ''content()/text'' were specified.
12491249

12501250
<dt><dfn>before</dfn>
1251-
<dd>The string value of the ''::before'' pseudo-element.
1251+
<dd>The string value of the ''::before'' [=pseudo-element=].
12521252

12531253
<dt><dfn>after</dfn>
1254-
<dd>The string value of the ''::after'' pseudo-element.
1254+
<dd>The string value of the ''::after'' [=pseudo-element=].
12551255

12561256
<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=]
12581258

12591259
<dt><dfn>marker</dfn>
1260-
<dd>The string value of the ''::marker'' pseudo-element.
1260+
<dd>The string value of the ''::marker'' [=pseudo-element=].
12611261
</dl>
12621262

12631263
<div class="example">

css-highlight-api-1/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Introduction</h2>
8989
The Custom Highlight API provides a programmatic way of adding and removing highlights
9090
that do not affect the underlying DOM structure,
9191
but instead applies styles to text based on [=range=] objects,
92-
accessed via the ''::highlight()'' pseudo element.
92+
accessed via the ''::highlight()'' [=pseudo-element=].
9393

9494
<div id=intro-ex class=example>
9595
The following code uses the ''::highlight()'' pseudo-element
@@ -310,7 +310,7 @@ Styling Custom Highlights</h2>
310310
<h3 id=custom-highlight-pseudo>
311311
The Custom Highlight Pseudo-element: ''::highlight()''</h3>
312312

313-
The ''::highlight()'' pseudo-element
313+
The ''::highlight()'' [=pseudo-element=]
314314
(also known as the <dfn>custom highlight pseudo-element</dfn>)
315315
represents the portion of a document that
316316
is being [=contained=] or [=partially contained=]

css-overflow-5/Overview.bs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Introduction</h2>
148148
::
149149
This section defines the ability to associate [=scroll markers=]
150150
with elements in a scroller
151-
(or generate them automatically as ''::scroll-marker'' pseudo-elements,
151+
(or generate them automatically as ''::scroll-marker'' [=pseudo-elements=],
152152
with automatic user behavior and accessible labels),
153153
which can be activated to scroll to the associated elements
154154
and reflect the scroller's relative scroll progress
@@ -192,7 +192,7 @@ Scroll navigation controls</h2>
192192
<h3 id="scroll-markers">
193193
Scroll markers</h3>
194194

195-
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=].
196196
An element or pseudo-element's <dfn>scroll target</dfn> is the {{Element}} indicated by the [=scroll marker=].
197197
Which elements are [=scroll markers=], and what their [=scroll targets=] are, is host-language defined.
198198
The [[html#the-a-element|HTML &lt;a> element]] and [[svg2#Links|SVG &lt;a> element]]
@@ -218,7 +218,7 @@ Scroll marker grouping</h4>
218218

219219
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=].
220220

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.
222222

223223
<h4 id="scroll-target-group">
224224
The 'scroll target group' property</h4>
@@ -299,7 +299,7 @@ The 'scroll-marker-group' property</h4>
299299
Canonical Order: per grammar
300300
</pre>
301301

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,
303303
and its position relative to the scroll container.
304304

305305
<dl dfn-type=value dfn-for=scroll-marker-group>
@@ -334,7 +334,7 @@ The 'scroll-marker-group' property</h4>
334334
or immediately following (if ''scroll-marker-group: after'').
335335

336336
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:
338338

339339
<pre class="lang-css">
340340
/* The generation of ::scroll-marker pseudo-elements shouldn't
@@ -807,9 +807,9 @@ Channeling Overflow: the 'continue' property</h3>
807807
See <a href="#fragment-overflow">fragment overflow</a>.
808808
</dl>
809809

810-
The computed value of the 'continue' for a given element or pseudo element is determined as follow:
810+
The computed value of the 'continue' for a given element or [=pseudo-element=] is determined as follow:
811811

812-
1. On elements or pseudo elements 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]]),
813813
if the specified value is ''continue/auto'' or ''continue/fragments''
814814
then the computed value is ''continue/overflow''.
815815

@@ -829,7 +829,7 @@ Channeling Overflow: the 'continue' property</h3>
829829

830830
4. In all other cases, the computed value is the specified value
831831

832-
Issue: If we introduce a pseudo element that can select columns in a multicol,
832+
Issue: If we introduce a pseudo-element that can select columns in a multicol,
833833
we would need to specify that auto computes to auto on it,
834834
or introduce a new value and have auto compute to that
835835
(but what would that value compute to on things that aren't columns?).
@@ -863,7 +863,7 @@ Paginated overflow</h3>
863863

864864
Issue: Traditional pagination (e.g. when printing) assumes that
865865
:root is contained in the page box,
866-
rather than having the page box be a pseudo element child of :root.
866+
rather than having the page box be a pseudo-element child of :root.
867867
Can we work around that using something similar to fragment boxes?
868868
Or maybe by having a fragment box (reproducing :root) inside a page box inside :root?
869869

@@ -1058,7 +1058,7 @@ Fragmented Overflow</h3>
10581058
<h4 id="fragment-pseudo-element">
10591059
The ''::nth-fragment()'' pseudo-element</h4>
10601060

1061-
The <dfn selector>::nth-fragment()</dfn> pseudo-element
1061+
The <dfn selector>::nth-fragment()</dfn> [=pseudo-element=]
10621062
is a pseudo-element
10631063
that describes some of the <a>fragment box</a>es generated by an element.
10641064
The argument to the pseudo-element takes the same syntax
@@ -1088,7 +1088,7 @@ Styling of fragments</h4>
10881088
then stricter property restrictions would be needed
10891089
for continue:paginate.)
10901090

1091-
In the absence of rules with ''::nth-fragment()'' pseudo-elements,
1091+
In the absence of rules with ''::nth-fragment()'' [=pseudo-elements=],
10921092
the computed style for each <a>fragment box</a>
10931093
is the computed style for the element
10941094
for which the <a>fragment box</a> was created.
@@ -1144,7 +1144,7 @@ Styling of fragments</h4>
11441144
</table>
11451145
</div>
11461146

1147-
Styling an ''::nth-fragment()'' pseudo-element with the 'continue'
1147+
Styling an ''::nth-fragment()'' [=pseudo-element=] with the 'continue'
11481148
property does take effect;
11491149
if a <a>fragment box</a> has a
11501150
computed value of 'continue' other than ''fragments''
@@ -1174,7 +1174,7 @@ Styling of fragments</h4>
11741174
applies to block containers, flex containers, and grid containers).
11751175
<span class="issue">Need to specify exactly how this works</span>
11761176

1177-
To match the model for other pseudo-elements
1177+
To match the model for other [=pseudo-elements=]
11781178
where the pseudo-elements live inside their corresponding element,
11791179
declarations in ''::nth-fragment()'' pseudo-elements override
11801180
declarations in rules without the pseudo-element.
@@ -1233,7 +1233,7 @@ Styling of fragments</h4>
12331233
Issue: Should this apply to continue:fragments only,
12341234
or also to continue:paginate?
12351235

1236-
The ''::nth-fragment()'' pseudo-element
1236+
The ''::nth-fragment()'' [=pseudo-element=]
12371237
can also be used to style
12381238
content inside of a <a>fragment box</a>.
12391239
Unlike the ''::first-line'' and ''::first-letter'' pseudo-elements,

0 commit comments

Comments
 (0)