@@ -833,46 +833,17 @@ Overlapping Pseudo-element Interactions</h2>
833833<h2 id="cssom">
834834Additions to the CSS Object Model</h2>
835835
836- Pseudo-elements should be reachable by script,
837- stylable from script,
838- and available as event targets.
839-
840- <p class="note"><span class="note-prefix"> Note </span> We may extend this
841- section in the future to allow creation of pseudo-elements from script.
842-
843- Issue: This entire section is a starting point for discussion.
844- Feedback is welcome.
845- Implementations, at this point, are not,
846- as we are not yet sure of our approach.
847-
848- Issue: This needs to be merged with the alternative
849- {{PseudoElement}} and {{Element/pseudo()}} proposal.
850-
851836<h3 id="CSSPseudoElement-interface">
852837Interface CSSPseudoElement</h3>
853838
854839 The <code> CSSPseudoElement</code> interface
855- allows pseudo-elements to be styleable from script
856- and makes them event targets.
857-
858- <div class="issue">
859- The approach in this draft
860- is to start with a bare minimum
861- for the CSSPseudoElement interface
862- and build up from there.
863- Another more radical approach
864- could take everything that's common
865- between a pseudo-element and a node
866- and create a new base class
867- for both Node and CSSPseudoElement.
868- </div>
840+ allows pseudo-elements to be event targets.
869841
870842 <pre class="idl">
871843 [Exposed=Window]
872844 interface CSSPseudoElement : EventTarget {
873845 readonly attribute CSSOMString <a href="#dom-csspseudochild-type">type</a> ;
874846 readonly attribute Element element;
875- readonly attribute <a href="https://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration">CSSStyleDeclaration</a> <a href="#dom-csspseudochild-style">style</a> ;
876847 };
877848 </pre>
878849
@@ -885,24 +856,17 @@ Interface CSSPseudoElement</h3>
885856 <dd> The pseudo-element was created before the element's contents.
886857 <dt> ‘::after’
887858 <dd> The pseudo-element was created after the element's contents.
888- <dt> ‘::first-letter’
889- <dd> The pseudo-element is the first letter of the element.
890- <dt> ‘::first-line’
891- <dd> The pseudo-element is the first line of the element.
892- <dt> ‘::selection’
893- <dd> The selection pseudo-element for the element.
894859 </dl>
895860
896861 The <dfn attribute for=CSSPseudoElement>element</dfn> attribute is the
897862 [=originating element=] of the pseudo-element.
898863
899- The <dfn attribute for=CSSPseudoElement>style</dfn> attribute
900- is a <code> CSSStyleDeclaration</code> [[!CSSOM]]
901- that allows directly setting style information (inline styles) onto the pseudo-element.
902- Declarations set via this mechanism
903- follow the same cascading rules
904- (i.e. those of a <a href="https://www.w3.org/TR/css-style-attr/#interpret">style attribute</a> )
905- as on regular <code> Element</code> s.
864+ Note: This interface may be extended in the future
865+ to other pseudo-element types
866+ and/or to allow setting style information
867+ through a <code> CSSStyleDeclaration</code> <code> style</code> attribute.
868+ The current functionality is limited
869+ to that which is needed to support [[web-animations-1]] .
906870
907871<h3 id="window-interface">
908872Addition to the <code>Element</code> interface</h3>
@@ -924,6 +888,12 @@ Addition to the <code>Element</code> interface</h3>
924888 Pseudo-elements of unsupported types are considered to simply not exist;
925889 unrecognized <code> type</code> values are not an error.
926890
891+ ISSUE: The identity, lifetime, and nullness of the return value
892+ (and potential error cases)
893+ of the <code> pseudo()</code> method is still under discussion.
894+ See <a href="https://github.com/w3c/csswg-drafts/issues/3607">Issue 3607</a>
895+ and <a href="https://github.com/w3c/csswg-drafts/issues/3603">Issue 3603</a> .
896+
927897<h2 id="css2-compat">
928898Compatibilitiy Syntax</h2>
929899
0 commit comments