Summary: | Empty spans after a line break are incorrectly positioned at the top left hand corner of their containing block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Justin Garcia <justin.garcia> | ||||||||
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | NEW --- | ||||||||||
Severity: | Normal | CC: | ddkilzer, hyatt, mitz, sam, simon.fraser | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | PC | ||||||||||
OS: | OS X 10.5 | ||||||||||
Attachments: |
|
Created attachment 76807 [details]
testcase
Here's a better example. Basically getClientRects() will return a rect positioned at the top left hand corner for each empty span that occurs in the range.
getClientRects is just one way to see the problem, which is that the spans are incorrectly positioned. Will attached a better reduction. Created attachment 76810 [details]
testcase
In this reduction, an empty span just after a <br> is positioned at the top left hand corner of its containing block, instead of after the br.
(In reply to comment #4) > Created an attachment (id=76810) [details] > testcase This seems to work correctly in FireFox, by the way. The new radar is <rdar://problem/8784036>. |
Created attachment 73569 [details] testcase Load the attached test case. Notice that there is no rect for the empty line in the middle (or the second rect is wrong).