Bug
1638583 [wpt PR 23657] - Fix missing borders on narrow elements, a=testonly
Automatic update from web-platform-tests
Fix missing borders on narrow elements
A recent change for painting narrow elements whose widths falls below
0.5 under zoom has caused problems when such elements have a single
pixel border. In such cases, the element size, including the border, is
greater than 1 and snaps normally, but the inner border rect has non
zero size below 0.5 and snaps up to size 1, instead of zero. As a result
the inner border rects is the same as the outer border rect and the
border is clipped out.
Here we change the rounding for inner border rect to not enforce the
non-zero-width constraint, as it is inappropriate in this case.
Bug:
1070091
Change-Id: Ia368ca00375fe5d8a060b88c2d9e314f25679b07
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
2204362
Reviewed-by: Philip Rogers <pdr@chromium.org>
Commit-Queue: Stephen Chenney <schenney@chromium.org>
Cr-Commit-Position: refs/heads/master@{#769828}
--
wpt-commits:
70abf62abfa74a05a4abc326a9708d0fe59e1be7
wpt-pr: 23657