Skip to content

Commit 49f14ae

Browse files
schenney-chromiumfantasai
authored andcommitted
Address review comments
1 parent 932aba3 commit 49f14ae

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

css-pseudo-4/Overview.bs

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,8 @@ Styling Highlights</h3>
696696
<wpt>
697697
css/css-pseudo/textpath-selection-011.html
698698
</wpt>
699+
700+
<li>A [=custom property=] may be defined and/or used inside a highlight pseudo-element.
699701
</ul>
700702

701703
The 'forced-color-adjust' property cannot be set on [=highlight pseudo-elements=];
@@ -868,11 +870,12 @@ Cascading and Per-Element Highlight Styles</h3>
868870
This occurs regardless of whether that property is an <a>inherited property</a>
869871
(and regardless of whether that property is a [=custom property=]
870872
that is registered to [=CSS/inherit=] or not).
871-
Additionally,
872-
for [=highlight pseudo-elements=] originating from the root element,
873-
the [=inherited value=] of 'color'
874-
is ''currentColor'',
875-
not the [=initial value=].
873+
874+
Additionally, for [=highlight pseudo-elements=] originating from the [=root element=]:
875+
<ul>
876+
<li> the inherited value of 'color' is ''currentColor'', not the [=initial value=].
877+
<li> [=custom properties=] inherit from the [=root element=].
878+
</ul>
876879

877880
<wpt>
878881
css/css-pseudo/active-selection-051.html
@@ -936,14 +939,7 @@ Cascading and Per-Element Highlight Styles</h3>
936939
css/css-pseudo/cascade-highlight-002.html
937940
</wpt>
938941

939-
<h4 id="highlight-custom-properties">
940-
Custom Properties in Highlight Styles</h3>
941-
942-
A [=custom property=] used in highlight styles uses the
943-
first custom property value found in the highlight cascade.
944-
However, if a custom property value cannot be resolved
945-
through the highlight cascade, the property value is taken from
946-
the root element.
942+
The following examples demonstrates the inheritaqnce of [=custom properties=].
947943

948944
<div class="example">
949945
For example, if an author specified
@@ -976,7 +972,7 @@ Custom Properties in Highlight Styles</h3>
976972
''div::selection'' itself.
977973
</div>
978974

979-
This behavior is intended to accomodate the standard practice of
975+
Note: This behavior is intended to accomodate the standard practice of
980976
defining document-wide custom properties on '':root''.
981977

982978
<h3 id="highlight-painting">

0 commit comments

Comments
 (0)