Closed Bug 2084488 Opened 1 month ago Closed 8 days ago

[wpt-sync] Sync PR 63924 - Accept single-radius ellipses in clip-path parsing

Categories

(Core :: Web Painting, task, P4)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63924 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63924
Details from upstream follow.

Domenic Denicola <d@domenic.me> wrote:

Accept single-radius ellipses in clip-path parsing

The current ellipse() grammar uses <radial-size>, whose one-component form supplies both radii. Move the four single-radius cases into valid coverage, keeping malformed positions and negative radii invalid. The closest-side default is omitted consistently with the existing two-radius default test.

https://drafts.csswg.org/css-shapes-1/#funcdef-basic-shape-ellipse https://drafts.csswg.org/css-images-4/#radial-gradients

Component: web-platform-tests → Web Painting
Product: Testing → Core

CI Results

Ran 6 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 29 tests and 55 subtests

Status Summary

Firefox

OK : 2[GitHub] 29[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 93[GitHub] 453[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 9[GitHub] 25[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 2
PASS: 98
FAIL: 4

Safari

OK : 2
PASS: 93
FAIL: 9

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /css/css-masking/parsing/clip-path-computed.html [wpt.fyi]
    • Property clip-path value 'polygon(round 1em, 1px 2px, 3em 4em)': FAIL
    • Property clip-path value 'polygon(evenodd round 6pt, 1px 2px, 3em 4em, 6pt 6%)': FAIL
    • Property clip-path value 'polygon(round 0px, 1px 2px, 3px 4px)': FAIL
    • Property clip-path value 'polygon(round calc(1em + 2px), 1px 2px, 3px 4px)': FAIL
  • /css/css-masking/parsing/clip-path-valid.html [wpt.fyi]
    • e.style['clip-path'] = "ellipse(3%)" should set the property value: FAIL (Chrome: FAIL, Safari: FAIL)
    • e.style['clip-path'] = "ellipse(3% at 100% 0%)" should set the property value: FAIL (Chrome: FAIL, Safari: FAIL)
    • e.style['clip-path'] = "ellipse(closest-side)" should set the property value: FAIL (Chrome: FAIL, Safari: FAIL)
    • e.style['clip-path'] = "ellipse(farthest-side at 100% 0%)" should set the property value: FAIL (Chrome: FAIL, Safari: FAIL)
    • e.style['clip-path'] = "polygon(round 1px, 1% 2%)" should set the property value: FAIL (Chrome: PASS, Safari: FAIL)
    • e.style['clip-path'] = "polygon(round 0px, 1px 2px, 3px 4px)" should set the property value: FAIL (Chrome: PASS, Safari: FAIL)
    • e.style['clip-path'] = "polygon(nonzero round 1px, 1px 2px, 3em 4em)" should set the property value: FAIL (Chrome: PASS, Safari: FAIL)
    • e.style['clip-path'] = "polygon(evenodd round 1px, 1px 2px, 3em 4em, 5pt 6%)" should set the property value: FAIL (Chrome: PASS, Safari: FAIL)
    • e.style['clip-path'] = "polygon(round calc(1em + 2px), 1px 2px, 3px 4px)" should set the property value: FAIL (Chrome: PASS, Safari: FAIL)
  • /css/css-masking/parsing/mask-size-computed.html [wpt.fyi]
    • Property mask-size value 'auto' multiple base values: FAIL
    • Property mask-size value '100%' multiple base values: FAIL
  • /css/css-masking/parsing/mask-valid.sub.html [wpt.fyi]
    • e.style['mask'] = "none" should set mask-border-outset: FAIL
    • e.style['mask'] = "none" should set mask-border-repeat: FAIL
    • e.style['mask'] = "none" should set mask-border-slice: FAIL
    • e.style['mask'] = "none" should set mask-border-source: FAIL
    • e.style['mask'] = "none" should set mask-border-width: FAIL
    • e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-border-outset: FAIL
    • e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-border-repeat: FAIL
    • e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-border-slice: FAIL
    • e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-border-source: FAIL
    • e.style['mask'] = "none, linear-gradient(to left bottom, red, blue) padding-box" should set mask-border-width: FAIL
Status: NEW → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.