W3C home > Mailing lists > Public > www-style@w3.org > February 2016

[css-pseudo] CSSPseudoElement and EventTarget

From: Simon Pieters <simonp@opera.com>
Date: Tue, 16 Feb 2016 14:05:53 +0100
To: "www-style@w3.org" <www-style@w3.org>
Cc: "Alan Stearns" <stearns@adobe.com>, birtles <bbirtles@mozilla.com>
Message-ID: <op.ycxfz3vdidj3kv@simons-mbp>
https://drafts.csswg.org/css-pseudo-4/#csspseudoelement

[[
interface CSSPseudoElement {
     readonly attribute DOMString type;
     readonly attribute CSSStyleDeclaration style;
};

CSSPseudoElement implements EventTarget;
]]

Typically things that are event targets inherit from EventTarget (e.g.  
Node, Window, EventSource, WebSocket...). Unless there was a deliberate  
reason to not do so here, I propose CSSPseudoElement should inherit from  
EventTarget also instead of using "implements", if it's supposed to be an  
event target:

interface CSSPseudoElement : EventTarget {
     readonly attribute DOMString type;
     readonly attribute CSSStyleDeclaration style;
};

-- 
Simon Pieters
Opera Software
Received on Tuesday, 16 February 2016 13:06:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:00 UTC