Bug 179942 - cross-fade(...) grammar/parsing does not match latest spec
Summary: cross-fade(...) grammar/parsing does not match latest spec
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: https://drafts.csswg.org/css-images/#...
Keywords: FromImplementor, InRadar, WebExposed
Depends on:
Reported: 2017-11-22 05:31 PST by Fredrik Söderquist
Modified: 2018-01-28 12:55 PST (History)
4 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Fredrik Söderquist 2017-11-22 05:31:21 PST
Copied from https://bugs.webkit.org/show_bug.cgi?id=157632#c3 :

Webkit implementation of the grammar and the latest spec are not the same.

cross-fade() = cross-fade( <cf-mixing-image> , <cf-final-image>? )
<cf-mixing-image> = <percentage>? && <image>
<cf-final-image> = <image> | <color>

So we have to put the percentage in front of it, and remove the comma.

-webkit-cross-fade(url(foo.png), url(bar.png), 20%)

cross-fade(20% url(foo.png), url(bar.png))

If WontFixing this, then please consider raising an issue with the spec to change to the currently implemented grammar.
Comment 1 Radar WebKit Bug Importer 2017-11-27 12:59:08 PST
Comment 2 Chris Nardi 2018-01-28 12:55:00 PST
I raised a spec issue for this at https://github.com/w3c/csswg-drafts/issues/2234.