Summary: | Unprefix -webkit-cross-fade() | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> | ||||
Component: | Images | Assignee: | Simon Fraser (smfr) <simon.fraser> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | 50167214, dino, eoconnor, fs, graouts, simon.fraser | ||||
Priority: | P2 | Keywords: | WebExposed | ||||
Version: | Safari Technology Preview | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Simon Fraser (smfr)
2016-05-12 11:48:35 PDT
Created attachment 278813 [details]
Patch
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. Before: -webkit-cross-fade(url(foo.png), url(bar.png), 20%) After: cross-fade(20% url(foo.png), url(bar.png)) And support <color> cross-fade(20% url(foo.png), #000) I filed bug 179942 for following up on comment 3. |