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

support setting style keys #1134

Closed
samouri opened this issue Feb 14, 2022 · 0 comments
Closed

support setting style keys #1134

samouri opened this issue Feb 14, 2022 · 0 comments

Comments

@samouri
Copy link
Member

samouri commented Feb 14, 2022

summary
In normal DOM, attributes of the style property will reflect in the attributes.

For example:

div.style.width = '100px';

This concept in general exists in WorkerDOM and is called a PropertyBackedAttribute.
This works for style when using explicit methods like setProperty, but does not work when directly assigning to `style.

conditions of satisfaction
Running div.style.width = '100px'; should result in setting style="width:100px;" on the div.

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

No branches or pull requests

1 participant