Skip to content

Commit 51240ae

Browse files
authored
Correct and simplify Firefox data for image-set() (#22902)
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 Use partial_implementation for that single-version issue. 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.
1 parent 4ac7eea commit 51240ae

File tree

3 files changed

+29
-12
lines changed

3 files changed

+29
-12
lines changed

css/properties/background-image.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,17 @@
183183
"edge": "mirror",
184184
"firefox": [
185185
{
186-
"version_added": "88",
187-
"notes": "Before Firefox 89, the <code>type()</code> function is not supported as an argument to <code>image-set()</code>."
186+
"version_added": "89"
188187
},
189188
{
190189
"prefix": "-webkit-",
191190
"version_added": "90"
191+
},
192+
{
193+
"version_added": "88",
194+
"version_removed": "89",
195+
"partial_implementation": true,
196+
"notes": "The <code>type()</code> function is not supported as an argument to <code>image-set()</code>."
192197
}
193198
],
194199
"firefox_android": "mirror",

css/properties/content.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,21 @@
173173
],
174174
"chrome_android": "mirror",
175175
"edge": "mirror",
176-
"firefox": {
177-
"version_added": "113",
178-
"partial_implementation": true,
179-
"notes": "<code>content: image-set(…);</code>` doesn't paint on ::before/::after pseudo elements. See <a href='https://bugzil.la/1832901'>bug 1832901</a>."
180-
},
176+
"firefox": [
177+
{
178+
"version_added": "89"
179+
},
180+
{
181+
"prefix": "-webkit-",
182+
"version_added": "90"
183+
},
184+
{
185+
"version_added": "88",
186+
"version_removed": "89",
187+
"partial_implementation": true,
188+
"notes": "The <code>type()</code> function is not supported as an argument to <code>image-set()</code>."
189+
}
190+
],
181191
"firefox_android": "mirror",
182192
"ie": {
183193
"version_added": false

css/types/image.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1910,15 +1910,17 @@
19101910
"edge": "mirror",
19111911
"firefox": [
19121912
{
1913-
"version_added": "88",
1914-
"notes": [
1915-
"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>.",
1916-
"Before Firefox 89, the <code>type()</code> function is not supported as an argument to <code>image-set()</code>."
1917-
]
1913+
"version_added": "89"
19181914
},
19191915
{
19201916
"prefix": "-webkit-",
19211917
"version_added": "90"
1918+
},
1919+
{
1920+
"version_added": "88",
1921+
"version_removed": "89",
1922+
"partial_implementation": true,
1923+
"notes": "The <code>type()</code> function is not supported as an argument to <code>image-set()</code>."
19221924
}
19231925
],
19241926
"firefox_android": "mirror",

0 commit comments

Comments
 (0)