-
Notifications
You must be signed in to change notification settings - Fork 716
[cssom-1] Serialization of feature values #11041
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
Comments
Lengths don't seem to serialize with the canonical unit at declaration-value time: var div = document.createElement("div");
div.style.width = "1in";
div.style.width; // "1in" Also the value of the |
Thanks, I replaced However, CSSOM wants dimensions to serialize with the " |
It says
|
Right, and "the unit in its canonical form" does not necessarily mean "the dimension in its canonical unit". I removed the row (thanks again). |
Uh oh!
There was an error while loading. Please reload this page.
Serializing Media Feature Values is poorly defined.
This is not really important but hey, it could simply be replaced with serializing a CSS component value: keywords in lowercase, base 10 numbers, etc.
In current version of Chrome and FF:
orientation: PORTRAIT
orientation: portrait
orientation: portrait
orientation: portrait
aspect-ratio: 1
aspect-ratio: 1 / 1
aspect-ratio: 1 / 1
aspect-ratio: 1 / 1
width: 0
width: 0
width: 0px
width: 0px
width: 1.0px
width: 1px
width: 1px
width: 1px
width: calc(1px * 2)
width: calc(2px)
width: calc(2px)
width: calc(2px)
The text was updated successfully, but these errors were encountered: