Skip to content

[cssom] getComputedStyle(elm, '::selection') works in WebKit, Blink #717

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zcorpan opened this issue Nov 16, 2016 · 1 comment
Closed
Labels
cssom-1 Current Work

Comments

@zcorpan
Copy link
Member

zcorpan commented Nov 16, 2016

https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle

The spec only supports ::before and ::after pseudo-elements in this API. WebKit and Blink also support ::selection.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4666

(WebKit needs the timeout, which seems like a bug.)

Gecko/IE/Edge do not support this. (As far as I can tell Edge doesn't support ::selection at all, but IE9..11 does?)

Should Gecko and Edge add ::selection here? Or should WebKit and Blink drop it?

cc @rune-opera

@FremyCompany
Copy link
Contributor

Merging with #2149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cssom-1 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants