Skip to content

Commit cb965fd

Browse files
committed
[css-pseudo-4] Make CSSPseudoElement.style cascade like Element.style; remove redundant sentence about events. w3c#3541 (comment)
1 parent 5fd8cd9 commit cb965fd

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

css-pseudo-4/Overview.bs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -901,14 +901,10 @@ Interface CSSPseudoElement</h3>
901901
The <dfn attribute for=CSSPseudoElement>style</dfn> attribute
902902
is a <code>CSSStyleDeclaration</code> [[!CSSOM]]
903903
that allows directly setting style information (inline styles) onto the pseudo-element.
904-
Inline styles on a <code>CSSPseudoElement</code> have precedence over all
905-
style rules styling that pseudo-element.
906-
907-
Issue: This should cascade like actual inline styles, not be a different thing.
908-
909-
The <a href="https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget"><code>EventTarget</code></a> interface [[!DOM-LEVEL-2-EVENTS]]
910-
must be implemented by all instances of <code>CSSPseudoElement</code>
911-
as a conformance requirement of this module.
904+
Declarations set via this mechanism
905+
follow the same cascading rules
906+
(i.e. those of a <a href="https://www.w3.org/TR/css-style-attr/#interpret">style attribute</a>)
907+
as on regular <code>Element</code>s.
912908

913909
<h3 id="window-interface">
914910
Addition to the <code>Element</code> interface</h3>

0 commit comments

Comments
 (0)