Skip to content

Commit 20b58a9

Browse files
committed
[css-pseudo-4] Better definition of inheritance from ::first-line per #1097
1 parent c90677e commit 20b58a9

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

css-pseudo-4/Overview.bs

+12-5
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,16 @@ Styling the First Line Pseudo-element</h4>
205205
<h4 id="first-line-inheritance">
206206
Inheritance and the ''::first-line'' Pseudo-element</h4>
207207

208-
During CSS inheritance, the portion of a child element that occurs on the first line
209-
only inherits properties applicable to the ''::first-line'' pseudo-element
208+
During CSS [=inheritance=],
209+
the [=box fragment|fragment=] of a child that occurs on the first line
210+
inherits any standard [=inherited properties=]
210211
from the ''::first-line'' pseudo-element.
211-
For all other properties inheritance is
212-
from the non-pseudo-element parent of the first line pseudo element.
212+
For all other properties,
213+
including all [=custom properties=] [[!CSS-VARIABLES-1]],
214+
inheritance is
215+
from the non-pseudo parent.
213216
(The portion of a child element that does not occur on the first line
214-
always inherits from the parent of that child.)
217+
always inherits from the non-pseudo parent.)
215218

216219
<h3 id="first-letter-pseudo">
217220
The ::first-letter pseudo-element</h3>
@@ -997,6 +1000,10 @@ Changes</h2>
9971000
<ul>
9981001
<li>Included spaces between the first letter and its surrounding punctuation in ''::first-letter''.
9991002
(<a href="https://github.com/w3c/csswg-drafts/issues/5154">Issue 5154</a>)
1003+
<li>Define inheritance of properties from ''::first-line''
1004+
in terms of inheritability rather than applicability
1005+
and define interaction with custom properties.
1006+
(<a href="https://github.com/w3c/csswg-drafts/issues/1097">Issue 1097</a>)
10001007
<li>Added ''::marker'' to types allowed for {{CSSPseudoElement}} interface.
10011008
<li>Clarified return value of {{pseudo()}}.
10021009
<li>Added 'content', 'unicode-bidi', and 'direction' to properties allowed on ''::marker''.

0 commit comments

Comments
 (0)