Skip to content

Commit

Permalink
Correct and simplify Firefox data for image-set()
Browse files Browse the repository at this point in the history
https://bugzil.la/1832901 is about `content: linear-gradient(...)`, but
`content: image-set(...)` works in Firefox 88 in this test:
https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=12629

That `type()` didn't work in Firefox 88 was confirmed with this test:
https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=12631

Support for `content: -webkit-image-set()` starting in Firefox 90 was
confirmed with additional manual testing (tweaking above tests).

https://bugzil.la/1696314 is only about the `cursor` property, the
`content` property was fixed in Firefox 113:
https://bugzilla.mozilla.org/show_bug.cgi?id=1684958

The exact scope of the changes in Firefox 113 is hard to discern, but
since `content: image-set(...)` works and `cursor: image-set(...)` isn't
in the spec, there's nothing worth noting.
  • Loading branch information
foolip committed Apr 22, 2024
1 parent dd678d2 commit 64297a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
15 changes: 10 additions & 5 deletions css/properties/content.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,16 @@
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": "113",
"partial_implementation": true,
"notes": "<code>content: image-set(…);</code>` doesn't paint on ::before/::after pseudo elements. See <a href='https://bugzil.la/1832901'>bug 1832901</a>."
},
"firefox": [
{
"version_added": "88",
"notes": "Before Firefox 89, the <code>type()</code> function is not supported as an argument to <code>image-set()</code>."
},
{
"prefix": "-webkit-",
"version_added": "90"
}
],
"firefox_android": "mirror",
"ie": {
"version_added": false
Expand Down
5 changes: 1 addition & 4 deletions css/types/image.json
Original file line number Diff line number Diff line change
Expand Up @@ -1904,10 +1904,7 @@
"firefox": [
{
"version_added": "88",
"notes": [
"In <code>cursor</code> and <code>content</code> properties, gradients are not supported as arguments to <code>image-set()</code>. See <a href='https://bugzil.la/1696314'>bug 1696314</a>.",
"Before Firefox 89, the <code>type()</code> function is not supported as an argument to <code>image-set()</code>."
]
"notes": "Before Firefox 89, the <code>type()</code> function is not supported as an argument to <code>image-set()</code>."
},
{
"prefix": "-webkit-",
Expand Down

0 comments on commit 64297a0

Please sign in to comment.