[meter] re-implement rounded corner using overflow:hidden
This CL uses a different approach to implement the rounded corner for <meter> to address the 1 pixel gap issue. The previous approach [1] (which uses clip-path applied on -internal-meter-clip) is reverted, and the new approach is using [overflow: hidden] on -webkit-meter-bar, and [display:grid] on -webkit-meter-inner-element. Note we can't just use overflow:hidden without changing display to grid since the baseline alignment would change (per CSS 2.1 spec, see [2] for details. (vertical-align:bottom doesn't work either)). [1] https://chromium-review.googlesource.com/c/chromium/src/+/1858295 [2] https://stackoverflow.com/questions/20152795/making-a-span-element-inline-block-and-overflow-hidden-will-displace-him Bug: 1021231 Change-Id: I51ffab57983c268620b6c81927dabd32043aa0c5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1980951 Commit-Queue: Alex Keng <shihken@microsoft.com> Reviewed-by:Mason Freed <masonfreed@chromium.org> Reviewed-by:
Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#728494}
Showing
18.2 KB
18.2 KB
18.2 KB
18.2 KB





17.7 KB

13.5 KB
11.7 KB
15.8 KB
17.7 KB
13.5 KB
11.7 KB