Bug 1823475 Comment 2 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(In reply to Daniel Holbert [:dholbert] from comment #0)
> This WPT test (in the interop-2023 set) has some failures in Firefox:
> https://wpt.fyi/results/css/css-masking/parsing/clip-path-valid.html
> http://wpt.live/css/css-masking/parsing/clip-path-valid.html
> 
> The failures are for things like:
> > e.style['clip-path'] = "circle()" should set the property value
> >assert_equals: serialization should be canonical
> > expected "circle(at 50% 50%)" but got "circle(at center center)"
> 
> We're using keywords (`center`) in the computed style, while the test is expecting `50%`.

Oh wait, sorry -- this test is actually checking the **specified** style, not the computed style.  And the spec says that the specified style should preserve keywords ("Keywords are serialized as keywords"), per https://drafts.csswg.org/css-values-4/#position-serialization

So this is a test bug.
(In reply to Daniel Holbert [:dholbert] from comment #0)
> We're using keywords (`center`) in the computed style, while the test is expecting `50%`.

Oh wait, sorry -- this test is actually checking the **specified** style, not the computed style.  And the spec says that the specified style should preserve keywords ("Keywords are serialized as keywords"), per https://drafts.csswg.org/css-values-4/#position-serialization

So this is a test bug.

Back to Bug 1823475 Comment 2