[Webkit-unassigned] [Bug 205563] New: Precision of getClientRects(), getBoundingClientRect() differs depending whether simple line layout or line box layout is used

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 23 11:32:42 PST 2019


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

            Bug ID: 205563
           Summary: Precision of getClientRects(), getBoundingClientRect()
                    differs depending whether simple line layout or line
                    box layout is used
           Product: WebKit
           Version: WebKit Local Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Text
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dbates at webkit.org
                CC: mmaxfield at apple.com

While looking into bug #205527, I noticed that the rects returned by getClientRects(), getBoundingClientRect() differ in precision depending on whether they were computed using the simple line layout or line box layout code.

Steps to reproduce:

1. Open the test case attached to bug #205527: attachment #386273.

Compare the rectangle returned under "getClientRects: Before selection:": <-- simple line layout

{"x":8,"y":26,"width":28.453125,"height":18,"top":26,"right":36.453125,"bottom":44,"left":8}

to the **second** rectangle returned under "getClientRects: After selection:": <-- line box layout

{"x":8,"y":26,"width":29,"height":18,"top":26,"right":37,"bottom":44,"left":8}

^^^ The width using simple line layout is 28.453125, but is 29 using line box layout.

-- 
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/20191223/5da77ae5/attachment.htm>


More information about the webkit-unassigned mailing list