@@ -26,7 +26,7 @@ spec:css-color-3; type:property; text:color
26
26
27
27
<em> This section is informative.</em>
28
28
29
- <i > Pseudo-elements</i > represent abstract elements of the document
29
+ <a >Pseudo-elements</a > represent abstract elements of the document
30
30
beyond those elements explicitly created by the document language.
31
31
Since they are not restricted to fitting into the document tree,
32
32
the can be used the select and style portions of the document
@@ -37,12 +37,12 @@ spec:css-color-3; type:property; text:color
37
37
allowing just that line to be styled differently
38
38
from the rest of the paragraph.
39
39
40
- Each pseudo-element is associated with an <i > originating element</i >
40
+ Each pseudo-element is associated with an <a >originating element</a >
41
41
and has syntax of the form ''::name-of-pseudo'' .
42
42
This module defines the pseudo-elements that exist in CSS
43
43
and how they can be styled.
44
44
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 > ,
46
46
see [[!SELECTORS4]] .
47
47
48
48
<h2 id="typographic-pseudos">
@@ -52,7 +52,7 @@ Typographic Pseudo-elements</h2>
52
52
The ::first-line pseudo-element</h3>
53
53
54
54
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 > .
56
56
57
57
<div class="example">
58
58
The rule below means
@@ -93,7 +93,7 @@ The ::first-line pseudo-element</h3>
93
93
94
94
This paragraph might be “rewritten” by user agents
95
95
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.
97
97
98
98
<pre>
99
99
<P><b> <P::first-line></b> This is a somewhat long HTML
@@ -106,7 +106,7 @@ The ::first-line pseudo-element</h3>
106
106
</div>
107
107
108
108
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 >
110
110
that closes and then re-opens the element.
111
111
112
112
<div class="example">
@@ -123,7 +123,7 @@ The ::first-line pseudo-element</h3>
123
123
</pre>
124
124
125
125
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''
127
127
to get the correct inheritance behavior.
128
128
129
129
<pre>
@@ -140,7 +140,7 @@ The ::first-line pseudo-element</h3>
140
140
Finding the First Formatted Line</h4>
141
141
142
142
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 > .
144
144
The <dfn export>first formatted line</dfn> of an element
145
145
must occur inside a block-level descendant in the same flow
146
146
(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>
165
165
were nested just inside the innermost enclosing block-level element.
166
166
167
167
<div class="example">
168
- For example, the <i > fictional tag sequence</i > for
168
+ For example, the <a >fictional tag sequence</a > for
169
169
<pre>
170
170
<DIV>
171
171
<P>First paragraph</P>
@@ -214,8 +214,8 @@ Inheritance and the ''::first-line'' Pseudo-element</h4>
214
214
The ::first-letter pseudo-element</h3>
215
215
216
216
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 > ,
219
219
if it is not preceded by any other content
220
220
(such as images or inline tables) on its line.
221
221
The ''::first-letter'' pseudo-element can be used
@@ -231,25 +231,25 @@ The ::first-letter pseudo-element</h3>
231
231
</pre>
232
232
</div>
233
233
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
236
236
in the ''::first-letter'' pseudo-element.
237
237
238
238
<div class="figure">
239
239
<img alt="Quotes that precede the first letter should be included." src="https://www.w3.org/TR/selectors/first-letter2.png">
240
240
</div>
241
241
242
242
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.
244
244
For example, combining characters must be kept with their base character.
245
245
Also, languages may have additional rules
246
246
about how to treat certain letter combinations.
247
247
In Dutch, for example, if the letter combination "ij" appears at the beginning of an element,
248
248
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 >
250
250
to reflect the first-letter traditions of the ''::first-letter'' pseudo-element’s <em> containing block</em> ’s content language.
251
251
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
253
253
be a digit, e.g., the “6” in “67 million dollars is a lot of money.”
254
254
255
255
If the characters that would form the ''::first-letter''
@@ -266,7 +266,7 @@ The ::first-letter pseudo-element</h3>
266
266
<h4 id="application-in-css">
267
267
Finding the First Letter</h4>
268
268
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 > .
270
270
For example, in this HTML fragment: <code> <p><br>First...</code>
271
271
the first line doesn't contain any letters
272
272
and ''::first-letter'' doesn't match anything.
@@ -286,7 +286,7 @@ Finding the First Letter</h4>
286
286
287
287
<div class="example">
288
288
Example:
289
- The <i > fictional tag sequence</i > for this HTML fragment:
289
+ The <a >fictional tag sequence</a > for this HTML fragment:
290
290
<pre>
291
291
<div>
292
292
<p>The first text.
@@ -398,7 +398,7 @@ Styling the ''::first-letter'' Pseudo-element</h4>
398
398
and ::first-line pseudo-elements" src="https://www.w3.org/TR/selectors/first-letter.png">
399
399
</div>
400
400
401
- The <i > fictional tag sequence</i > is:
401
+ The <a >fictional tag sequence</a > is:
402
402
403
403
<pre>
404
404
<P>
@@ -557,7 +557,7 @@ Cascading and Per-Element Highlight Styles</h3>
557
557
Issue: This could alternately be described in terms of inheritance.
558
558
The observable differences would be in how ''inherit'' and ''unset'' behave.
559
559
Should it inherit from the parent ''::selection''
560
- or the <i > originating element</i > ?
560
+ or the <a >originating element</a > ?
561
561
Opera does the former, Gecko/Blink the latter.
562
562
563
563
<p class="advisement">
@@ -639,20 +639,20 @@ Generated Content Pseudo-elements: ''::before'' and ''::after''</h3>
639
639
640
640
When their computed 'content' value is not ''content/none'' ,
641
641
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 > ,
643
643
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.
646
646
[[CSS3CASCADE]]
647
647
648
648
<dl>
649
649
<dt> <dfn>::before</dfn>
650
650
<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.
652
652
653
653
<dt> <dfn>::after</dfn>
654
654
<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.
656
656
</dl>
657
657
658
658
<div class="example">
@@ -672,7 +672,7 @@ Generated Content Pseudo-elements: ''::before'' and ''::after''</h3>
672
672
As with the content of regular elements,
673
673
the generated content of ''::before'' and '':after'' pseudo-elements
674
674
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 > .
676
676
677
677
<p> For compatibility with existing style sheets written against CSS Level 2 [[CSS21]] ,
678
678
user agents must also accept the previous one-colon notation
@@ -766,7 +766,7 @@ Overlapping Pseudo-element Interactions</h2>
766
766
while the rest of the paragraph will be red.
767
767
768
768
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:
770
770
<pre>
771
771
<P>
772
772
<P::first-line>
0 commit comments