- From: Cameron McCormack via GitHub <sysbot+gh@w3.org>
- Date: Wed, 30 Jan 2019 00:31:34 +0000
- To: public-css-archive@w3.org
FWIW the `PseudoElement` interface and `Element.pseudo()` function have already been removed from the CSSOM spec. I feel like a function on `Element` rather than on `Window` is more ergonomic, but I also think it will be more common to want to get a specific pseudo rather than a list of all the pseudos that are available on the element, so maybe an API like this would be better: ```webidl partial interface Element { CSSPseudoElement? pseudo(CSSOMString type); }; ``` The old `PseudoElement` interface did not allow writable access to the inline style for the pseudo. The `CSSPseudoElement` interface does. Though the `style` member on `CSSPseudoElement` now should probably be replaced with: ```webidl CSSPseudoElement includes ElementCSSInlineStyle; ``` (And then perhaps `ElementCSSInlineStyle` should be renamed to `CSSInlineStyle`, since it would no longer be used just for elements.) -- GitHub Notification of comment by heycam Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3541#issuecomment-458763617 using your GitHub account
Received on Wednesday, 30 January 2019 00:31:35 UTC