[Webkit-unassigned] [Bug 103658] New: Range.getClientRects() returns rectangles for children of a selected parent
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 29 12:09:36 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=103658
Summary: Range.getClientRects() returns rectangles for children
of a selected parent
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
URL: http://dvcs.w3.org/hg/csswg/raw-file/tip/cssom-view/Ov
erview.html#extensions-to-the-range-interface
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: mats at mozilla.com
Created an attachment (id=176780)
--> (https://bugs.webkit.org/attachment.cgi?id=176780&action=review)
Testcase #1
Range.getClientRects() returns rectangles for children of a selected parent.
This doesn't comply with the CSSOM spec that says:
"whose parent is not selected by the range"
http://dvcs.w3.org/hg/csswg/raw-file/tip/cssom-view/Overview.html#extensions-to-the-range-interface
See the attached test - the correct result is:
range.getClientRects()[0] = 0,0,14,54
range.getBoundingClientRect() = 0,0,14,54
(Fwiw, Firefox and Opera implements this correctly)
Google Chrome "25.0.1323.1 dev" on Linux64 gives this result:
range.getClientRects()[0] = 0,0,14,54
range.getClientRects()[1] = 2,2,179,18
range.getClientRects()[2] = 2,21,179,18
range.getClientRects()[3] = 2,40,179,18
range.getClientRects()[4] = 2,59,179,18
range.getClientRects()[5] = 2,78,179,18
range.getClientRects()[6] = 2,97,179,18
range.getClientRects()[7] = 2,116,179,18
range.getClientRects()[8] = 2,135,179,18
range.getClientRects()[9] = 2,154,179,18
range.getClientRects()[10] = 2,173,179,18
range.getClientRects()[11] = 2,192,179,18
range.getBoundingClientRect() = 0,0,181,210
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list