[LayoutNG] Make editing/selection/shift-click.html pass
The layout test unnecessarily depends on a non-standard behavior that, HTMLElement.offsetLeft returns non-zero result even for inline elements without any box (*). The test fails with LayoutNG as the behavior isn't implemented there. This patch changes the layout test to compute mouse coordinates from non-empty inline elements, so that it passes. (*) https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetleft: "... Return the result of subtracting ... from the x-coordinate of the left border edge of the first CSS layout box associated with the element ..." Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng Change-Id: I35beeb83674a034486b00890f6267ab778892087 Reviewed-on: https://chromium-review.googlesource.com/1070937 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:Yoichi Osato <yoichio@chromium.org> Cr-Commit-Position: refs/heads/master@{#561378}
Showing
Please register or sign in to comment