[Webkit-unassigned] [Bug 160786] getClientRects() can return empty rects

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 10 19:23:05 PDT 2017


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

Daniel Bates <dbates at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dbates at webkit.org
         Resolution|---                         |INVALID

--- Comment #1 from Daniel Bates <dbates at webkit.org> ---
Since CSSOM View Module W3C Working Draft 22 February 2008, <https://www.w3.org/TR/2008/WD-cssom-view-20080222>, it has been acceptable for getClientRects() to return a rectangle with zero width or zero height. With respect to the latest draft [1], this is allowed by step 3 in the algorithm for getClientRects():

[[
3. Return a DOMRectList object containing DOMRect objects in content order, one for each box fragment, describing its border area (including those with a height or width of zero) with the following constraints:
...
]]

Notice the phrase "including those with a height or width of zero".

[1] <https://drafts.csswg.org/cssom-view/#dom-element-getclientrects> (Editor's Draft, 15 September 2017)

-- 
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/20171011/ed5fad1f/attachment.html>


More information about the webkit-unassigned mailing list