[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
Wed Jan 15 04:07:58 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=206161

cathiechen <cathiechen at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #387639|0                           |1
        is obsolete|                            |

--- Comment #4 from cathiechen <cathiechen at igalia.com> ---
Created attachment 387775

  --> https://bugs.webkit.org/attachment.cgi?id=387775&action=review

Add_img_test_cases

Hi Fred,

This issue seems only related to RenderReplaced, i.e, use intrinsic aspect-ratio to compute width / height. In RenderReplaced::computeReplacedLogicalWidth and RenderReplaced::computeReplacedLogicalHeight, roundToInt is called.

PS: Append <img> test to your case.

-- 
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/20200115/ae6e59fa/attachment.htm>


More information about the webkit-unassigned mailing list