[Webkit-unassigned] [Bug 171226] New: getBoundingClientRect on a newly-created Element not yet inserted into the DOM should return an all-zeroes DOMRect
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Apr 24 09:42:18 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=171226
Bug ID: 171226
Summary: getBoundingClientRect on a newly-created Element not
yet inserted into the DOM should return an all-zeroes
DOMRect
Product: WebKit
Version: Safari 10
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: fred.wang at free.fr
CC: cdumez at apple.com
Depends on: 171215
This is a edge case, covered by the following test: http://w3c-test.org/cssom-view/cssom-getBoundingClientRect-002.html
https://drafts.csswg.org/cssom-view/#dom-element-getboundingclientrect
"Let list be the result of invoking getClientRects() on the same element this method was invoked on. If the list is empty return a DOMRect object whose x, y, width and height members are zero."
https://drafts.csswg.org/cssom-view/#dom-element-getclientrects
"If the element on which it was invoked does not have an associated layout box return an empty sequence and stop this algorithm."
Referenced Bugs:
https://bugs.webkit.org/show_bug.cgi?id=171215
[Bug 171215] Import W3C tests for the CSSOM View module
--
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/20170424/f044a2a7/attachment.html>
More information about the webkit-unassigned
mailing list