[Webkit-unassigned] [Bug 225962] New: Calculated width percent loses the floating point and cause line wrap

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 18 23:46:55 PDT 2021


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

            Bug ID: 225962
           Summary: Calculated width percent loses the floating point and
                    cause line wrap
           Product: WebKit
           Version: Safari 14
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: roland at nextendweb.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Steps to reproduce:
1. Open https://jsfiddle.net/jxd3c08u/2/

What went wrong:
Second and third "Hello World" wraps into new line after "Hello"

Expected result:
"Hello World" should be in one line


Cause:
The container element of the Hello World text has floating point width: 183.03px. When we use calculated width (calc(100% - 0px)) it cause probably a rounding and the width for that element becomes 183px and the two word no longer fit into that. 


Firefox and Chrome behaves as expected and there is no line wrap.

-- 
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/20210519/ebfb1891/attachment.htm>


More information about the webkit-unassigned mailing list