Skip to content

Commit ebb1961

Browse files
committed
[css-pseudo] Use <a>.
1 parent e736ba3 commit ebb1961

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

css-pseudo/Overview.bs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ spec:css-color-3; type:property; text:color
2626

2727
<em>This section is informative.</em>
2828

29-
<i>Pseudo-elements</i> represent abstract elements of the document
29+
<a>Pseudo-elements</a> represent abstract elements of the document
3030
beyond those elements explicitly created by the document language.
3131
Since they are not restricted to fitting into the document tree,
3232
the can be used the select and style portions of the document
@@ -37,12 +37,12 @@ spec:css-color-3; type:property; text:color
3737
allowing just that line to be styled differently
3838
from the rest of the paragraph.
3939

40-
Each pseudo-element is associated with an <i>originating element</i>
40+
Each pseudo-element is associated with an <a>originating element</a>
4141
and has syntax of the form ''::name-of-pseudo''.
4242
This module defines the pseudo-elements that exist in CSS
4343
and how they can be styled.
4444
For more information on pseudo-elements in general,
45-
and on their syntax and interaction with other <i>selectors</i>,
45+
and on their syntax and interaction with other <a>selectors</a>,
4646
see [[!SELECTORS4]].
4747

4848
<h2 id="typographic-pseudos">
@@ -52,7 +52,7 @@ Typographic Pseudo-elements</h2>
5252
The ::first-line pseudo-element</h3>
5353

5454
The <dfn>::first-line</dfn> pseudo-element describes the contents of
55-
the <i>first formatted line</i> of its <i>originating element</i>.
55+
the <a>first formatted line</a> of its <a>originating element</a>.
5656

5757
<div class="example">
5858
The rule below means
@@ -93,7 +93,7 @@ The ::first-line pseudo-element</h3>
9393

9494
This paragraph might be “rewritten” by user agents
9595
to include a <dfn>fictional tag sequence</dfn> to represent ''::first-line''.
96-
This <i>fictional tag sequence</i> helps to show how properties are inherited.
96+
This <a>fictional tag sequence</a> helps to show how properties are inherited.
9797

9898
<pre>
9999
&lt;P&gt;<b>&lt;P::first-line&gt;</b> This is a somewhat long HTML
@@ -106,7 +106,7 @@ The ::first-line pseudo-element</h3>
106106
</div>
107107

108108
If a pseudo-element breaks up a real element,
109-
the desired effect can often be described by a <i>fictional tag sequence</i>
109+
the desired effect can often be described by a <a>fictional tag sequence</a>
110110
that closes and then re-opens the element.
111111

112112
<div class="example">
@@ -123,7 +123,7 @@ The ::first-line pseudo-element</h3>
123123
</pre>
124124

125125
the user agent could simulate start and end tags for <code>span</code>
126-
when inserting the <i>fictional tag sequence</i> for ''::first-line''
126+
when inserting the <a>fictional tag sequence</a> for ''::first-line''
127127
to get the correct inheritance behavior.
128128

129129
<pre>
@@ -140,7 +140,7 @@ The ::first-line pseudo-element</h3>
140140
Finding the First Formatted Line</h4>
141141

142142
In CSS, the ''::first-line'' pseudo-element
143-
can only have an effect when attached to a <i>block container</i>.
143+
can only have an effect when attached to a <a>block container</a>.
144144
The <dfn export>first formatted line</dfn> of an element
145145
must occur inside a block-level descendant in the same flow
146146
(i.e., a block-level descendant that is not out-of-flow due to floating or positioning).
@@ -165,7 +165,7 @@ Finding the First Formatted Line</h4>
165165
were nested just inside the innermost enclosing block-level element.
166166

167167
<div class="example">
168-
For example, the <i>fictional tag sequence</i> for
168+
For example, the <a>fictional tag sequence</a> for
169169
<pre>
170170
&lt;DIV&gt;
171171
&lt;P&gt;First paragraph&lt;/P&gt;
@@ -214,8 +214,8 @@ Inheritance and the ''::first-line'' Pseudo-element</h4>
214214
The ::first-letter pseudo-element</h3>
215215

216216
The <dfn>::first-letter</dfn> pseudo-element represents
217-
the first <i>typographic letter unit</i> [[!CSS3TEXT]]
218-
on the <i>first formatted line</i> of its <i>originating element</i>,
217+
the first <a>typographic letter unit</a> [[!CSS3TEXT]]
218+
on the <a>first formatted line</a> of its <a>originating element</a>,
219219
if it is not preceded by any other content
220220
(such as images or inline tables) on its line.
221221
The ''::first-letter'' pseudo-element can be used
@@ -231,25 +231,25 @@ The ::first-letter pseudo-element</h3>
231231
</pre>
232232
</div>
233233

234-
Punctuation (i.e, characters that belong to the Punctuation (<code>P*</code>) <i>Unicode general category</i> [[!UAX44]])
235-
that precedes or follows the first <i>typographic letter unit</i> must also be included
234+
Punctuation (i.e, characters that belong to the Punctuation (<code>P*</code>) <a>Unicode general category</a> [[!UAX44]])
235+
that precedes or follows the first <a>typographic letter unit</a> must also be included
236236
in the ''::first-letter'' pseudo-element.
237237

238238
<div class="figure">
239239
<img alt="Quotes that precede the first letter should be included." src="https://www.w3.org/TR/selectors/first-letter2.png">
240240
</div>
241241

242242
As explained in [[!CSS3TEXT]],
243-
a <i>typographic letter unit</i> can include more than one Unicode codepoint.
243+
a <a>typographic letter unit</a> can include more than one Unicode codepoint.
244244
For example, combining characters must be kept with their base character.
245245
Also, languages may have additional rules
246246
about how to treat certain letter combinations.
247247
In Dutch, for example, if the letter combination "ij" appears at the beginning of an element,
248248
both letters should be considered within the ''::first-letter'' pseudo-element. [[UAX29]]
249-
The UA should tailor its definition of <i>typographic letter unit</i>
249+
The UA should tailor its definition of <a>typographic letter unit</a>
250250
to reflect the first-letter traditions of the ''::first-letter'' pseudo-element’s <em>containing block</em>’s content language.
251251

252-
Note: Note that the first <i>typographic letter unit</i> may in fact
252+
Note: Note that the first <a>typographic letter unit</a> may in fact
253253
be a digit, e.g., the “6” in “67 million dollars is a lot of money.”
254254

255255
If the characters that would form the ''::first-letter''
@@ -266,7 +266,7 @@ The ::first-letter pseudo-element</h3>
266266
<h4 id="application-in-css">
267267
Finding the First Letter</h4>
268268

269-
The first letter must occur on the <i>first formatted line</i>.
269+
The first letter must occur on the <a>first formatted line</a>.
270270
For example, in this HTML fragment: <code>&lt;p&gt;&lt;br&gt;First...</code>
271271
the first line doesn't contain any letters
272272
and ''::first-letter'' doesn't match anything.
@@ -286,7 +286,7 @@ Finding the First Letter</h4>
286286

287287
<div class="example">
288288
Example:
289-
The <i>fictional tag sequence</i> for this HTML fragment:
289+
The <a>fictional tag sequence</a> for this HTML fragment:
290290
<pre>
291291
&lt;div&gt;
292292
&lt;p&gt;The first text.
@@ -398,7 +398,7 @@ Styling the ''::first-letter'' Pseudo-element</h4>
398398
and ::first-line pseudo-elements" src="https://www.w3.org/TR/selectors/first-letter.png">
399399
</div>
400400

401-
The <i>fictional tag sequence</i> is:
401+
The <a>fictional tag sequence</a> is:
402402

403403
<pre>
404404
&lt;P&gt;
@@ -557,7 +557,7 @@ Cascading and Per-Element Highlight Styles</h3>
557557
Issue: This could alternately be described in terms of inheritance.
558558
The observable differences would be in how ''inherit'' and ''unset'' behave.
559559
Should it inherit from the parent ''::selection''
560-
or the <i>originating element</i>?
560+
or the <a>originating element</a>?
561561
Opera does the former, Gecko/Blink the latter.
562562

563563
<p class="advisement">
@@ -639,20 +639,20 @@ Generated Content Pseudo-elements: ''::before'' and ''::after''</h3>
639639

640640
When their computed 'content' value is not ''content/none'',
641641
these pseudo-elements generate boxes
642-
as if they were immediate children of their <i>originating element</i>,
642+
as if they were immediate children of their <a>originating element</a>,
643643
and can be styled exactly like any normal document-sourced element in the document tree.
644-
They <i lt="inheritance">inherit</i> any inheritable properties from their <i>originating element</i>;
645-
non-inheritable properties take their <i>initial values</i> as usual.
644+
They <a lt="inheritance">inherit</a> any inheritable properties from their <a>originating element</a>;
645+
non-inheritable properties take their <a>initial values</a> as usual.
646646
[[CSS3CASCADE]]
647647

648648
<dl>
649649
<dt><dfn>::before</dfn>
650650
<dd>Represents a styleable child pseudo-element
651-
immediately before the <i>originating element</i>'s actual content.
651+
immediately before the <a>originating element</a>'s actual content.
652652

653653
<dt><dfn>::after</dfn>
654654
<dd>Represents a styleable child pseudo-element
655-
immediately after the <i>originating element</i>'s actual content.
655+
immediately after the <a>originating element</a>'s actual content.
656656
</dl>
657657

658658
<div class="example">
@@ -672,7 +672,7 @@ Generated Content Pseudo-elements: ''::before'' and ''::after''</h3>
672672
As with the content of regular elements,
673673
the generated content of ''::before'' and '':after'' pseudo-elements
674674
may be included in any ''::first-line'' and ''::first-letter'' pseudo-elements
675-
applied to its <i>originating element</i>.
675+
applied to its <a>originating element</a>.
676676

677677
<p>For compatibility with existing style sheets written against CSS Level 2 [[CSS21]],
678678
user agents must also accept the previous one-colon notation
@@ -766,7 +766,7 @@ Overlapping Pseudo-element Interactions</h2>
766766
while the rest of the paragraph will be red.
767767

768768
Assuming that a line break will occur before the word "ends",
769-
the <i>fictional tag sequence</i> for this fragment might be:
769+
the <a>fictional tag sequence</a> for this fragment might be:
770770
<pre>
771771
&lt;P&gt;
772772
&lt;P::first-line&gt;

0 commit comments

Comments
 (0)