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] "Mutating the declarations" is underdefined #370

Open
smaug---- opened this issue Aug 2, 2016 · 0 comments
Open

[cssom] "Mutating the declarations" is underdefined #370

smaug---- opened this issue Aug 2, 2016 · 0 comments
Assignees
Labels
cssom-1 Current Work

Comments

@smaug----
Copy link

smaug---- commented Aug 2, 2016

Is the latter of the following a "mutating the declarations"
element.style.width = "10px"; element.style.width = "10px"; ?

The reason why this must be defined is to decide what kind of MutationRecords should be created when style attribute is set.

Given that element.setAttribute("style", "width: 10px;"); element.setAttribute("style", "width: 10px;");
creates two MutationRecords, I think for consistency also element.style.width = "10px"; element.style.width = "10px"; should. And that is the behavior in Gecko and Edge (but not in blink)

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

3 participants