Skip to content

Commit f185e9c

Browse files
hamishwilleeddbeck
andauthored
FF97 CSS basic-shape path() function enabled by default (#14498)
* FF97 CSS basic-shape path() function enabled by default * css.properties.clip-path - fix versions * clip-path.json - fix up android version for path * svg.elements.path.d.path() - add versions * clip-path - fix up proper removal for pref * basic-shapes . path - make all notes * Add mdn url for path() * Fix up basic-shapes path support * Apply suggestions from code review Co-authored-by: Daniel D. Beck <[email protected]> * Update svg/elements/path.json Co-authored-by: Daniel D. Beck <[email protected]> Co-authored-by: Daniel D. Beck <[email protected]>
1 parent 4d8ed08 commit f185e9c

File tree

3 files changed

+141
-35
lines changed

3 files changed

+141
-35
lines changed

css/properties/clip-path.json

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,24 @@
314314
"version_added": "71"
315315
},
316316
{
317-
"version_added": "63",
317+
"version_added": "64",
318+
"version_removed": "71",
319+
"flags": [
320+
{
321+
"type": "preference",
322+
"name": "layout.css.clip-path-path.enabled",
323+
"value_to_set": "true"
324+
}
325+
]
326+
}
327+
],
328+
"firefox_android": [
329+
{
330+
"version_added": "79"
331+
},
332+
{
333+
"version_added": "64",
334+
"version_removed": "79",
318335
"flags": [
319336
{
320337
"type": "preference",
@@ -324,16 +341,6 @@
324341
]
325342
}
326343
],
327-
"firefox_android": {
328-
"version_added": "63",
329-
"flags": [
330-
{
331-
"type": "preference",
332-
"name": "layout.css.clip-path-path.enabled",
333-
"value_to_set": "true"
334-
}
335-
]
336-
},
337344
"ie": {
338345
"version_added": false
339346
},

css/types/basic-shape.json

Lines changed: 61 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -270,30 +270,67 @@
270270
"partial_implementation": true,
271271
"notes": "Only supported on the <code>offset-path</code> property."
272272
},
273-
"firefox": {
274-
"version_added": "63",
275-
"partial_implementation": true,
276-
"notes": "Only supported on the <code>clip-path</code> and <code>offset-path</code> properties.",
277-
"flags": [
278-
{
279-
"type": "preference",
280-
"name": "layout.css.clip-path-path.enabled",
281-
"value_to_set": "true"
282-
}
283-
]
284-
},
285-
"firefox_android": {
286-
"version_added": "63",
287-
"partial_implementation": true,
288-
"notes": "Only supported on the <code>clip-path</code> and <code>offset-path</code> properties.",
289-
"flags": [
290-
{
291-
"type": "preference",
292-
"name": "layout.css.clip-path-path.enabled",
293-
"value_to_set": "true"
294-
}
295-
]
296-
},
273+
"firefox": [
274+
{
275+
"version_added": "63",
276+
"partial_implementation": true,
277+
"notes": [
278+
"From version 97, the <code>d</code> SVG presentation attribute supports <code>path()</code>.",
279+
"From version 71, the <code>clip-path</code> property supports <code>path()</code>.",
280+
"Before version 71, only the <code>offset-path</code> property supports <code>path()</code>."
281+
]
282+
},
283+
{
284+
"version_added": "91",
285+
"version_removed": "97",
286+
"partial_implementation": true,
287+
"flags": [
288+
{
289+
"type": "preference",
290+
"name": "layout.css.d-property.enabled",
291+
"value_to_set": "true"
292+
}
293+
],
294+
"notes": "With the preference enabled, the <code>d</code> SVG presentation attribute, <code>clip-path</code> CSS property, and <code>offset-path</code> CSS property support <code>path()</code>."
295+
},
296+
{
297+
"version_added": "64",
298+
"version_removed": "71",
299+
"partial_implementation": true,
300+
"flags": [
301+
{
302+
"type": "preference",
303+
"name": "layout.css.clip-path-path.enabled",
304+
"value_to_set": "true"
305+
}
306+
],
307+
"notes": "With the preference enabled, the <code>clip-path</code> and <code>offset-path</code> properties support <code>path()</code>."
308+
}
309+
],
310+
"firefox_android": [
311+
{
312+
"version_added": "63",
313+
"partial_implementation": true,
314+
"notes": [
315+
"From version 97, the <code>d</code> SVG presentation attribute supports <code>path()</code>.",
316+
"From version 79, the <code>clip-path</code> property supports <code>path()</code>.",
317+
"Before version 79, only the <code>offset-path</code> property supports <code>path()</code>."
318+
]
319+
},
320+
{
321+
"version_added": "64",
322+
"version_removed": "79",
323+
"partial_implementation": true,
324+
"flags": [
325+
{
326+
"type": "preference",
327+
"name": "layout.css.clip-path-path.enabled",
328+
"value_to_set": "true"
329+
}
330+
],
331+
"notes": "With the preference enabled, the <code>clip-path</code> and <code>offset-path</code> properties support <code>path()</code>."
332+
}
333+
],
297334
"ie": {
298335
"version_added": false
299336
},

svg/elements/path.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,68 @@
100100
"standard_track": true,
101101
"deprecated": false
102102
}
103+
},
104+
"path": {
105+
"__compat": {
106+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/path()",
107+
"description": "<code>d</code> as CSS property supports <code>path()</code>",
108+
"support": {
109+
"chrome": {
110+
"version_added": "52"
111+
},
112+
"chrome_android": {
113+
"version_added": "52"
114+
},
115+
"edge": {
116+
"version_added": "79"
117+
},
118+
"firefox": [
119+
{
120+
"version_added": "97"
121+
},
122+
{
123+
"version_added": "91",
124+
"version_removed": "97",
125+
"flags": [
126+
{
127+
"type": "preference",
128+
"name": "layout.css.d-property.enabled",
129+
"value_to_set": "true"
130+
}
131+
]
132+
}
133+
],
134+
"firefox_android": {
135+
"version_added": "97"
136+
},
137+
"ie": {
138+
"version_added": false
139+
},
140+
"opera": {
141+
"version_added": "60"
142+
},
143+
"opera_android": {
144+
"version_added": "51"
145+
},
146+
"safari": {
147+
"version_added": false
148+
},
149+
"safari_ios": {
150+
"version_added": false
151+
},
152+
"samsunginternet_android": {
153+
"version_added": "6.0"
154+
},
155+
"webview_android": {
156+
"version_added": "52"
157+
}
158+
},
159+
"status": {
160+
"experimental": false,
161+
"standard_track": true,
162+
"deprecated": false
163+
}
164+
}
103165
}
104166
}
105167
}

0 commit comments

Comments
 (0)