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
Make element.style more clear that it's just the style attribute #4895
Comments
Added this to the Later milestone. |
Another option is to go all in and make element.style reflect the computed style. This is what jQuery does: http://api.jquery.com/category/manipulation/style-properties/ |
This comment was originally written by gp7...@gmail.com Hi, I would suggest: I have read this post: http://code.google.com/p/doctype-mirror/wiki/ArticleComputedStyleVsCascadedStyle As I understand, the computed or "dynamic" style in pixels is not just the information that is statically given in the CSS file or html file. So I would rather like to have a difference between:
Best regards |
This comment was originally written by gp78...@gmail.com Maybe even a distinction between:
|
This comment was originally written by gp78...@gmail.com I guess that the Dart team wants to express the CSS and XML information of the DOM in terms of Dart native objects.
|
See also issue #5048 |
Added html-api label. |
Removed html-api label. |
Removed Area-HTML label. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
See also mailing list thread: https://groups.google.com/a/dartlang.org/forum/?fromgroups=#!topic/misc/vMJqwwK0lM8
It's confusing that element.style captures only the style attribute, not "any style applied to the element". You can use "getComputedStyle" for this, but that's an opaque name for new developers.
As Dart wants to help all developers build for the web, it is suggested that we make things a bit more clear.
Some strawmen:
* Rename element.style to element.styleAttribute
The text was updated successfully, but these errors were encountered: