Skip to content

Commit 579481c

Browse files
committed
[selectors] Add note clarifying that hover state propagates up from shadow trees.
1 parent 59e5a43 commit 579481c

2 files changed

Lines changed: 225 additions & 194 deletions

File tree

selectors/Overview.bs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2152,6 +2152,9 @@ The pointer hover pseudo-class '':hover''</h3>
21522152
are still conforming.
21532153

21542154
The parent of an element that is '':hover'' is also in that state.
2155+
2156+
Note: When an element that is '':hover'' is in a <a>shadow tree</a>,
2157+
the <a>host element</a> (and its parents) are also in the '':hover'' state. (See [[css-scoping-1]])
21552158

21562159
Host languages may define additional ways in which an element can match '':hover''.
21572160
For example, [[HTML5]] defines a <a element>label</a> element as <a href="http://www.whatwg.org/html/selectors.html#selector-hover">matching <code>:hover</code></a>

0 commit comments

Comments
 (0)