Closed Bug 1472873 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 11760 - [LayoutNG] Fix hit test clipping by fragmented border with round corner

Categories

(Core :: CSS Parsing and Computation, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 11760 into mozilla-central (this bug is closed when the sync is complete). PR: https://github.com/web-platform-tests/wpt/pull/11760 Details from upstream follow. Xiaocheng Hu <xiaochengh@chromium.org> wrote: > [LayoutNG] Fix hit test clipping by fragmented border with round corner > > Current NG hit test code decides whether a hit test location is clipped > by rounded border by adding border radius to all four corners and then > compare with the hit test location. This is wrong if the box is > fragmented, where it may have only two or zero rounded corners. > > This patch changes HitTestClippedOutByBorder() to take the above into > consideration. By utilizing |border_edges_|, it can generate the > corrected rounded border to be hit tested. > > Test: This patch slightly modifies WPT > hit-test-inline-fragmentation-with-border-radius.html as a workaround > of some rounding issue, which is out of the scope of this patch. > > Bug: 855279, 859233 > Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng;luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel > Change-Id: I1e3193f9fc2d5e52ff53d6cb2fcc2a0ae2b3aa43 > Reviewed-on: https://chromium-review.googlesource.com/1123265 > WPT-Export-Revision: b444e7494815633b515bbccf7c3f5bd22995e8e8
PR 11760 applied with additional changes from upstream: 8213774aa68cc63a195b5d4b82a6ec5f8279e0b9
Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Ran 1 tests and 36 subtests OK : 1 PASS : 36
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/mozilla-inbound/rev/ff5f2bc38d16 [wpt PR 11760] - [LayoutNG] Fix hit test clipping by fragmented border with round corner, a=testonly
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.