Skip to content

Commit

Permalink
Move SVG attributes stop-color and stop-opacity to global attribu…
Browse files Browse the repository at this point in the history
…tes (#25272)

Move `stop-color,stop-opacity` as global attributes
  • Loading branch information
skyclouds2001 authored Dec 5, 2024
1 parent a86dee6 commit 5c36272
Show file tree
Hide file tree
Showing 2 changed files with 147 additions and 147 deletions.
104 changes: 1 addition & 103 deletions svg/elements/stop.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"stop": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/SVG/Element/stop",
"spec_url": "https://svgwg.org/svg2-draft/pservers.html#GradientStops",
"spec_url": "https://svgwg.org/svg2-draft/pservers.html#StopElement",
"tags": [
"web-features:svg"
],
Expand Down Expand Up @@ -94,108 +94,6 @@
"deprecated": false
}
}
},
"stop-color": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/SVG/Attribute/stop-color",
"spec_url": "https://svgwg.org/svg2-draft/pservers.html#StopColorProperty",
"tags": [
"web-features:svg"
],
"support": {
"chrome": {
"version_added": "1"
},
"chrome_android": "mirror",
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "1.5"
},
"firefox_android": "mirror",
"ie": {
"version_added": "9"
},
"oculus": "mirror",
"opera": {
"version_added": "9"
},
"opera_android": {
"version_added": "10.1"
},
"safari": {
"version_added": "3"
},
"safari_ios": {
"version_added": "3"
},
"samsunginternet_android": "mirror",
"webview_android": {
"version_added": "3"
},
"webview_ios": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"stop-opacity": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/SVG/Attribute/stop-opacity",
"spec_url": "https://svgwg.org/svg2-draft/pservers.html#StopOpacityProperty",
"tags": [
"web-features:svg"
],
"support": {
"chrome": {
"version_added": "1"
},
"chrome_android": "mirror",
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "1.5"
},
"firefox_android": "mirror",
"ie": {
"version_added": "9"
},
"oculus": "mirror",
"opera": {
"version_added": "9"
},
"opera_android": {
"version_added": "10.1"
},
"safari": {
"version_added": "3"
},
"safari_ios": [
{
"version_added": "14"
},
{
"version_added": "3",
"version_removed": "11"
}
],
"samsunginternet_android": "mirror",
"webview_android": {
"version_added": "3"
},
"webview_ios": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
}
}
}
Expand Down
190 changes: 146 additions & 44 deletions svg/global_attributes.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,50 +280,6 @@
}
}
},
"paint-order": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/SVG/Attribute/paint-order",
"spec_url": "https://svgwg.org/svg2-draft/painting.html#PaintOrder",
"tags": [
"web-features:paint-order"
],
"support": {
"chrome": {
"version_added": "≤73"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": "≤66"
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": {
"version_added": false
},
"safari": {
"version_added": "≤12"
},
"safari_ios": {
"version_added": false
},
"samsunginternet_android": "mirror",
"webview_android": {
"version_added": false
},
"webview_ios": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"class": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/SVG/Attribute/class",
Expand Down Expand Up @@ -2121,6 +2077,50 @@
}
}
},
"paint-order": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/SVG/Attribute/paint-order",
"spec_url": "https://svgwg.org/svg2-draft/painting.html#PaintOrder",
"tags": [
"web-features:paint-order"
],
"support": {
"chrome": {
"version_added": "≤73"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": "≤66"
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": {
"version_added": false
},
"safari": {
"version_added": "≤12"
},
"safari_ios": {
"version_added": false
},
"samsunginternet_android": "mirror",
"webview_android": {
"version_added": false
},
"webview_ios": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"pointer-events": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/SVG/Attribute/pointer-events",
Expand Down Expand Up @@ -2203,6 +2203,108 @@
}
}
},
"stop-color": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/SVG/Attribute/stop-color",
"spec_url": "https://svgwg.org/svg2-draft/pservers.html#StopColorProperty",
"tags": [
"web-features:svg"
],
"support": {
"chrome": {
"version_added": "1"
},
"chrome_android": "mirror",
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "1.5"
},
"firefox_android": "mirror",
"ie": {
"version_added": "9"
},
"oculus": "mirror",
"opera": {
"version_added": "9"
},
"opera_android": {
"version_added": "10.1"
},
"safari": {
"version_added": "3"
},
"safari_ios": {
"version_added": "3"
},
"samsunginternet_android": "mirror",
"webview_android": {
"version_added": "3"
},
"webview_ios": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"stop-opacity": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/SVG/Attribute/stop-opacity",
"spec_url": "https://svgwg.org/svg2-draft/pservers.html#StopOpacityProperty",
"tags": [
"web-features:svg"
],
"support": {
"chrome": {
"version_added": "1"
},
"chrome_android": "mirror",
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "1.5"
},
"firefox_android": "mirror",
"ie": {
"version_added": "9"
},
"oculus": "mirror",
"opera": {
"version_added": "9"
},
"opera_android": {
"version_added": "10.1"
},
"safari": {
"version_added": "3"
},
"safari_ios": [
{
"version_added": "14"
},
{
"version_added": "3",
"version_removed": "11"
}
],
"samsunginternet_android": "mirror",
"webview_android": {
"version_added": "3"
},
"webview_ios": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"stroke": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke",
Expand Down

0 comments on commit 5c36272

Please sign in to comment.