[Webkit-unassigned] [Bug 206161] getComputedStyle(img).height returns string of a rounded int not a float
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 14 02:25:45 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=206161
--- Comment #1 from Frédéric Wang (:fredw) - OOO until January 6 <fred.wang at free.fr> ---
These are the relevant spec definitions:
getComputedStyle(): https://drafts.csswg.org/cssom/#extensions-to-the-window-interface
CSS declaration block: https://drafts.csswg.org/cssom/#css-declaration-block
CSS declaration: https://drafts.csswg.org/cssom/#css-declaration
Serialize a CSS declaration: https://drafts.csswg.org/cssom/#serialize-a-css-declaration
Serialize a CSS value: https://drafts.csswg.org/cssom/#serialize-a-css-value
Serialize a CSS component value: https://drafts.csswg.org/cssom/#serialize-a-css-component-value
<length>
The <number> component serialized as per <number> followed by the unit in its canonical form as defined in its respective specification.
ISSUE 12: Probably should distinguish between specified and computed / resolved values.
<number>
A base-ten number using digits 0-9 (U+0030 to U+0039) in the shortest form possible, using "." to separate decimals (if any), rounding the value if necessary to not produce more than 6 decimals, preceded by "-" (U+002D) if it is negative.
Note: scientific notation is not used.
<percentage>
The <number> component serialized as per <number> followed by the literal string "%" (U+0025).
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200114/fe866137/attachment.htm>
More information about the webkit-unassigned
mailing list