Skip to content
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

[cssom] Element.getComputedStyle() #379

Open
hfhchan opened this issue Aug 4, 2016 · 1 comment
Open

[cssom] Element.getComputedStyle() #379

hfhchan opened this issue Aug 4, 2016 · 1 comment

Comments

@hfhchan
Copy link

hfhchan commented Aug 4, 2016

Suggest introducing Element.getComputedStyle( [pseudoelt] ) and Element.getUsedStyle( [pseudoelt] ) with proper computed value and used value semantics.

window.getComputedStyle( element, [pseudoelt] ) looks like a procedural function attached on a random object.

@dbaron dbaron added cssom-1 Current Work cssom-view-1 and removed cssom-1 Current Work labels Sep 28, 2016
@dbaron
Copy link
Member

dbaron commented Sep 28, 2016

I think the draft had something like this for a while, but it was removed since nobody implemented it. (Although I was mildly interested, but just hadn't gotten to it.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants