[wpt-sync] Sync PR 57957 - [border-shape] Fix border-shape inner path clip
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox150 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 57957 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/57957
Details from upstream follow.
Daniil Sakhapov <sakhapov@chromium.org> wrote:
[border-shape] Fix border-shape inner path clip
For a single-shape border-shape, the border is painted as a stroke
centered on the shape path with the border width as the stroke
thickness. This means the border extends border_width/2 inward and
outward from the path.However, the InnerBorderShapeClip — which clips overflow-hidden
children — was using BorderShapePainter::InnerPath(), which returns
the raw shape path (the center of the stroke).
This allowed children to paint over the inner half of the border stroke,
making the border appear thinner when a child element overlaps.Added a new method BorderShapePainter::OverflowClipInnerPath() that:
For dual-shape border-shape: returns the same as InnerPath()
For single-shape border-shape: contracts the path inward by
border_width/2, so children are clipped at the inner edge of the border
stroke.The original InnerPath is left unchanged because inset box-shadow
painting correctly uses the center-of-stroke clip (the border paints on
top and covers any overlap).Fixed: 485909483
Change-Id: Ic60309c64b79084012b1e8603df5a58081b05f27
Reviewed-on: https://chromium-review.googlesource.com/7597494
WPT-Export-Revision: e1ed165265eb3eb53bf156b7b75e9077149bc747
| Assignee | ||
Updated•9 months ago
|
| Assignee | ||
Comment 1•9 months ago
|
||
| Assignee | ||
Comment 2•9 months ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 30 tests and 1 subtests
Status Summary
Firefox
OK : 8
PASS: 1[GitHub] 9[Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt] 17[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 18[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
FAIL: 78[Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt] 91[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] 92[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]
Chrome
FAIL: 1
Safari
PASS: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-borders/tentative/border-shape/border-shape-clips-background.html [wpt.fyi]:
FAIL - /css/css-borders/tentative/border-shape/border-shape-combined-shadow.html [wpt.fyi]:
FAIL - /css/css-borders/tentative/border-shape/border-shape-geometry-box.html [wpt.fyi]:
FAIL - /css/css-borders/tentative/border-shape/border-shape-inner-outer.html [wpt.fyi]:
FAIL - /css/css-borders/tentative/border-shape/border-shape-inset-shadow.html [wpt.fyi]:
FAIL - /css/css-borders/tentative/border-shape/border-shape-outline-double-path.tentative.html [wpt.fyi]:
FAIL - /css/css-borders/tentative/border-shape/border-shape-outline-double.tentative.html [wpt.fyi]:
FAIL - /css/css-borders/tentative/border-shape/border-shape-outline-offset.tentative.html [wpt.fyi]:
FAIL - /css/css-borders/tentative/border-shape/border-shape-outline.tentative.html [wpt.fyi]:
FAIL - /css/css-borders/tentative/border-shape/border-shape-overflow-solid-background.html [wpt.fyi]:
FAIL - /css/css-borders/tentative/border-shape/border-shape-overflow.html [wpt.fyi]:
FAIL - /css/css-borders/tentative/border-shape/border-shape-stroke-from-border.html [wpt.fyi]:
FAIL - /css/css-borders/tentative/border-shape/border-shape-two-shapes-shadow.html [wpt.fyi]:
FAIL - /css/css-borders/tentative/border-shape/border-shape-animation.tentative.html [wpt.fyi]
- CSS Transitions: property <border-shape> from [circle(10px at 10px 10px)] to [circle(30px at 30px 30px)] at (0) should be [circle(10px at 10px 10px)]:
FAIL - CSS Transitions: property <border-shape> from [circle(10px at 10px 10px)] to [circle(30px at 30px 30px)] at (0.5) should be [circle(20px at 20px 20px)]:
FAIL - CSS Transitions: property <border-shape> from [circle(10px at 10px 10px)] to [circle(30px at 30px 30px)] at (1) should be [circle(30px at 30px 30px)]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [circle(10px at 10px 10px)] to [circle(30px at 30px 30px)] at (0) should be [circle(10px at 10px 10px)]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [circle(10px at 10px 10px)] to [circle(30px at 30px 30px)] at (0.5) should be [circle(20px at 20px 20px)]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [circle(10px at 10px 10px)] to [circle(30px at 30px 30px)] at (1) should be [circle(30px at 30px 30px)]:
FAIL - CSS Animations: property <border-shape> from [circle(10px at 10px 10px)] to [circle(30px at 30px 30px)] at (0) should be [circle(10px at 10px 10px)]:
FAIL - CSS Animations: property <border-shape> from [circle(10px at 10px 10px)] to [circle(30px at 30px 30px)] at (0.5) should be [circle(20px at 20px 20px)]:
FAIL - CSS Animations: property <border-shape> from [circle(10px at 10px 10px)] to [circle(30px at 30px 30px)] at (1) should be [circle(30px at 30px 30px)]:
FAIL - Web Animations: property <border-shape> from [circle(10px at 10px 10px)] to [circle(30px at 30px 30px)] at (0) should be [circle(10px at 10px 10px)]:
FAIL - Web Animations: property <border-shape> from [circle(10px at 10px 10px)] to [circle(30px at 30px 30px)] at (0.5) should be [circle(20px at 20px 20px)]:
FAIL - Web Animations: property <border-shape> from [circle(10px at 10px 10px)] to [circle(30px at 30px 30px)] at (1) should be [circle(30px at 30px 30px)]:
FAIL - CSS Transitions: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [circle(40px at 30px 40px) circle(20px at 30px 40px)] at (0) should be [circle(20px at 10px 20px) circle(10px at 10px 20px)]:
FAIL - CSS Transitions: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [circle(40px at 30px 40px) circle(20px at 30px 40px)] at (0.5) should be [circle(30px at 20px 30px) circle(15px at 20px 30px)]:
FAIL - CSS Transitions: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [circle(40px at 30px 40px) circle(20px at 30px 40px)] at (1) should be [circle(40px at 30px 40px) circle(20px at 30px 40px)]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [circle(40px at 30px 40px) circle(20px at 30px 40px)] at (0) should be [circle(20px at 10px 20px) circle(10px at 10px 20px)]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [circle(40px at 30px 40px) circle(20px at 30px 40px)] at (0.5) should be [circle(30px at 20px 30px) circle(15px at 20px 30px)]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [circle(40px at 30px 40px) circle(20px at 30px 40px)] at (1) should be [circle(40px at 30px 40px) circle(20px at 30px 40px)]:
FAIL - CSS Animations: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [circle(40px at 30px 40px) circle(20px at 30px 40px)] at (0) should be [circle(20px at 10px 20px) circle(10px at 10px 20px)]:
FAIL - CSS Animations: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [circle(40px at 30px 40px) circle(20px at 30px 40px)] at (0.5) should be [circle(30px at 20px 30px) circle(15px at 20px 30px)]:
FAIL - CSS Animations: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [circle(40px at 30px 40px) circle(20px at 30px 40px)] at (1) should be [circle(40px at 30px 40px) circle(20px at 30px 40px)]:
FAIL - Web Animations: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [circle(40px at 30px 40px) circle(20px at 30px 40px)] at (0) should be [circle(20px at 10px 20px) circle(10px at 10px 20px)]:
FAIL - Web Animations: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [circle(40px at 30px 40px) circle(20px at 30px 40px)] at (0.5) should be [circle(30px at 20px 30px) circle(15px at 20px 30px)]:
FAIL - Web Animations: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [circle(40px at 30px 40px) circle(20px at 30px 40px)] at (1) should be [circle(40px at 30px 40px) circle(20px at 30px 40px)]:
FAIL - CSS Transitions: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [polygon(10px 10px, 100px 10px, 10px 100px) polygon(20px 20px, 80px 20px, 20px 80px)] at (0) should be [circle(20px at 10px 20px) circle(10px at 10px 20px)]:
FAIL - CSS Transitions: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [polygon(10px 10px, 100px 10px, 10px 100px) polygon(20px 20px, 80px 20px, 20px 80px)] at (1) should be [polygon(10px 10px, 100px 10px, 10px 100px) polygon(20px 20px, 80px 20px, 20px 80px)]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [polygon(10px 10px, 100px 10px, 10px 100px) polygon(20px 20px, 80px 20px, 20px 80px)] at (0) should be [circle(20px at 10px 20px) circle(10px at 10px 20px)]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [polygon(10px 10px, 100px 10px, 10px 100px) polygon(20px 20px, 80px 20px, 20px 80px)] at (1) should be [polygon(10px 10px, 100px 10px, 10px 100px) polygon(20px 20px, 80px 20px, 20px 80px)]:
FAIL - CSS Animations: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [polygon(10px 10px, 100px 10px, 10px 100px) polygon(20px 20px, 80px 20px, 20px 80px)] at (0) should be [circle(20px at 10px 20px) circle(10px at 10px 20px)]:
FAIL - CSS Animations: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [polygon(10px 10px, 100px 10px, 10px 100px) polygon(20px 20px, 80px 20px, 20px 80px)] at (1) should be [polygon(10px 10px, 100px 10px, 10px 100px) polygon(20px 20px, 80px 20px, 20px 80px)]:
FAIL - Web Animations: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [polygon(10px 10px, 100px 10px, 10px 100px) polygon(20px 20px, 80px 20px, 20px 80px)] at (0) should be [circle(20px at 10px 20px) circle(10px at 10px 20px)]:
FAIL - Web Animations: property <border-shape> from [circle(20px at 10px 20px) circle(10px at 10px 20px)] to [polygon(10px 10px, 100px 10px, 10px 100px) polygon(20px 20px, 80px 20px, 20px 80px)] at (1) should be [polygon(10px 10px, 100px 10px, 10px 100px) polygon(20px 20px, 80px 20px, 20px 80px)]:
FAIL - CSS Transitions: property <border-shape> from [circle() border-box circle() content-box] to [circle() content-box circle() border-box] at (0) should be [circle() border-box circle() content-box]:
FAIL - CSS Transitions: property <border-shape> from [circle() border-box circle() content-box] to [circle() content-box circle() border-box] at (1) should be [circle() content-box circle() border-box]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [circle() border-box circle() content-box] to [circle() content-box circle() border-box] at (0) should be [circle() border-box circle() content-box]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [circle() border-box circle() content-box] to [circle() content-box circle() border-box] at (1) should be [circle() content-box circle() border-box]:
FAIL - CSS Animations: property <border-shape> from [circle() border-box circle() content-box] to [circle() content-box circle() border-box] at (0) should be [circle() border-box circle() content-box]:
FAIL - CSS Animations: property <border-shape> from [circle() border-box circle() content-box] to [circle() content-box circle() border-box] at (1) should be [circle() content-box circle() border-box]:
FAIL - Web Animations: property <border-shape> from [circle() border-box circle() content-box] to [circle() content-box circle() border-box] at (0) should be [circle() border-box circle() content-box]:
FAIL - Web Animations: property <border-shape> from [circle() border-box circle() content-box] to [circle() content-box circle() border-box] at (1) should be [circle() content-box circle() border-box]:
FAIL - CSS Transitions: property <border-shape> from [circle(20px at 10px 20px) border-box circle(10px at 10px 20px) padding-box] to [circle(40px at 30px 40px) border-box circle(20px at 30px 40px) padding-box] at (0) should be [circle(20px at 10px 20px) circle(10px at 10px 20px)]:
FAIL - CSS Transitions: property <border-shape> from [circle(20px at 10px 20px) border-box circle(10px at 10px 20px) padding-box] to [circle(40px at 30px 40px) border-box circle(20px at 30px 40px) padding-box] at (0.5) should be [circle(30px at 20px 30px) circle(15px at 20px 30px)]:
FAIL - CSS Transitions: property <border-shape> from [circle(20px at 10px 20px) border-box circle(10px at 10px 20px) padding-box] to [circle(40px at 30px 40px) border-box circle(20px at 30px 40px) padding-box] at (1) should be [circle(40px at 30px 40px) circle(20px at 30px 40px)]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [circle(20px at 10px 20px) border-box circle(10px at 10px 20px) padding-box] to [circle(40px at 30px 40px) border-box circle(20px at 30px 40px) padding-box] at (0) should be [circle(20px at 10px 20px) circle(10px at 10px 20px)]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [circle(20px at 10px 20px) border-box circle(10px at 10px 20px) padding-box] to [circle(40px at 30px 40px) border-box circle(20px at 30px 40px) padding-box] at (0.5) should be [circle(30px at 20px 30px) circle(15px at 20px 30px)]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [circle(20px at 10px 20px) border-box circle(10px at 10px 20px) padding-box] to [circle(40px at 30px 40px) border-box circle(20px at 30px 40px) padding-box] at (1) should be [circle(40px at 30px 40px) circle(20px at 30px 40px)]:
FAIL - CSS Animations: property <border-shape> from [circle(20px at 10px 20px) border-box circle(10px at 10px 20px) padding-box] to [circle(40px at 30px 40px) border-box circle(20px at 30px 40px) padding-box] at (0) should be [circle(20px at 10px 20px) circle(10px at 10px 20px)]:
FAIL - CSS Animations: property <border-shape> from [circle(20px at 10px 20px) border-box circle(10px at 10px 20px) padding-box] to [circle(40px at 30px 40px) border-box circle(20px at 30px 40px) padding-box] at (0.5) should be [circle(30px at 20px 30px) circle(15px at 20px 30px)]:
FAIL - CSS Animations: property <border-shape> from [circle(20px at 10px 20px) border-box circle(10px at 10px 20px) padding-box] to [circle(40px at 30px 40px) border-box circle(20px at 30px 40px) padding-box] at (1) should be [circle(40px at 30px 40px) circle(20px at 30px 40px)]:
FAIL - Web Animations: property <border-shape> from [circle(20px at 10px 20px) border-box circle(10px at 10px 20px) padding-box] to [circle(40px at 30px 40px) border-box circle(20px at 30px 40px) padding-box] at (0) should be [circle(20px at 10px 20px) circle(10px at 10px 20px)]:
FAIL - Web Animations: property <border-shape> from [circle(20px at 10px 20px) border-box circle(10px at 10px 20px) padding-box] to [circle(40px at 30px 40px) border-box circle(20px at 30px 40px) padding-box] at (0.5) should be [circle(30px at 20px 30px) circle(15px at 20px 30px)]:
FAIL - Web Animations: property <border-shape> from [circle(20px at 10px 20px) border-box circle(10px at 10px 20px) padding-box] to [circle(40px at 30px 40px) border-box circle(20px at 30px 40px) padding-box] at (1) should be [circle(40px at 30px 40px) circle(20px at 30px 40px)]:
FAIL - CSS Transitions: property <border-shape> from [circle(20px at 10px 20px)] to [circle(40px at 30px 40px) half-border-box circle(40px at 30px 40px) half-border-box] at (0) should be [circle(20px at 10px 20px) half-border-box circle(20px at 10px 20px) half-border-box]:
FAIL - CSS Transitions: property <border-shape> from [circle(20px at 10px 20px)] to [circle(40px at 30px 40px) half-border-box circle(40px at 30px 40px) half-border-box] at (0.5) should be [circle(30px at 20px 30px) half-border-box circle(30px at 20px 30px) half-border-box]:
FAIL - CSS Transitions: property <border-shape> from [circle(20px at 10px 20px)] to [circle(40px at 30px 40px) half-border-box circle(40px at 30px 40px) half-border-box] at (1) should be [circle(40px at 30px 40px) half-border-box circle(40px at 30px 40px) half-border-box]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [circle(20px at 10px 20px)] to [circle(40px at 30px 40px) half-border-box circle(40px at 30px 40px) half-border-box] at (0) should be [circle(20px at 10px 20px) half-border-box circle(20px at 10px 20px) half-border-box]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [circle(20px at 10px 20px)] to [circle(40px at 30px 40px) half-border-box circle(40px at 30px 40px) half-border-box] at (0.5) should be [circle(30px at 20px 30px) half-border-box circle(30px at 20px 30px) half-border-box]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [circle(20px at 10px 20px)] to [circle(40px at 30px 40px) half-border-box circle(40px at 30px 40px) half-border-box] at (1) should be [circle(40px at 30px 40px) half-border-box circle(40px at 30px 40px) half-border-box]:
FAIL - CSS Animations: property <border-shape> from [circle(20px at 10px 20px)] to [circle(40px at 30px 40px) half-border-box circle(40px at 30px 40px) half-border-box] at (0) should be [circle(20px at 10px 20px) half-border-box circle(20px at 10px 20px) half-border-box]:
FAIL - CSS Animations: property <border-shape> from [circle(20px at 10px 20px)] to [circle(40px at 30px 40px) half-border-box circle(40px at 30px 40px) half-border-box] at (0.5) should be [circle(30px at 20px 30px) half-border-box circle(30px at 20px 30px) half-border-box]:
FAIL - CSS Animations: property <border-shape> from [circle(20px at 10px 20px)] to [circle(40px at 30px 40px) half-border-box circle(40px at 30px 40px) half-border-box] at (1) should be [circle(40px at 30px 40px) half-border-box circle(40px at 30px 40px) half-border-box]:
FAIL - Web Animations: property <border-shape> from [circle(20px at 10px 20px)] to [circle(40px at 30px 40px) half-border-box circle(40px at 30px 40px) half-border-box] at (0) should be [circle(20px at 10px 20px) half-border-box circle(20px at 10px 20px) half-border-box]:
FAIL - Web Animations: property <border-shape> from [circle(20px at 10px 20px)] to [circle(40px at 30px 40px) half-border-box circle(40px at 30px 40px) half-border-box] at (0.5) should be [circle(30px at 20px 30px) half-border-box circle(30px at 20px 30px) half-border-box]:
FAIL - Web Animations: property <border-shape> from [circle(20px at 10px 20px)] to [circle(40px at 30px 40px) half-border-box circle(40px at 30px 40px) half-border-box] at (1) should be [circle(40px at 30px 40px) half-border-box circle(40px at 30px 40px) half-border-box]:
FAIL - CSS Transitions: property <border-shape> from [none] to [circle() circle()] at (0) should be [none]:
FAIL - CSS Transitions: property <border-shape> from [none] to [circle() circle()] at (0.5) should be [circle() circle()]:
FAIL - CSS Transitions: property <border-shape> from [none] to [circle() circle()] at (1) should be [circle() circle()]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [none] to [circle() circle()] at (0) should be [none]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [none] to [circle() circle()] at (0.5) should be [circle() circle()]:
FAIL - CSS Transitions with transition: all: property <border-shape> from [none] to [circle() circle()] at (1) should be [circle() circle()]:
FAIL - CSS Animations: property <border-shape> from [none] to [circle() circle()] at (0) should be [none]:
FAIL - CSS Animations: property <border-shape> from [none] to [circle() circle()] at (0.5) should be [circle() circle()]:
FAIL - CSS Animations: property <border-shape> from [none] to [circle() circle()] at (1) should be [circle() circle()]:
FAIL - Web Animations: property <border-shape> from [none] to [circle() circle()] at (0) should be [none]:
FAIL - Web Animations: property <border-shape> from [none] to [circle() circle()] at (0.5) should be [circle() circle()]:
FAIL - Web Animations: property <border-shape> from [none] to [circle() circle()] at (1) should be [circle() circle()]:
FAIL
- CSS Transitions: property <border-shape> from [circle(10px at 10px 10px)] to [circle(30px at 30px 30px)] at (0) should be [circle(10px at 10px 10px)]:
- /css/css-borders/tentative/border-shape/border-shape-circle-hit-test-siblings.html [wpt.fyi]
- CSS Borders Test: hit testing border-shape circle depth order with siblings:
FAIL - CSS Borders Test: hit testing border-shape circle depth order with siblings 1:
FAIL[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-24h2-debug,Gecko-windows11-32-24h2-opt,Gecko-windows11-64-24h2-debug,Gecko-windows11-64-24h2-opt]
- CSS Borders Test: hit testing border-shape circle depth order with siblings:
- /css/css-borders/tentative/border-shape/border-shape-circle-hit-test.html [wpt.fyi]
- CSS Borders Test: hit testing border-shape circle:
FAIL
- CSS Borders Test: hit testing border-shape circle:
Comment 4•8 months ago
|
||
| bugherder | ||
Description
•