Skip to content

Commit

Permalink
Remove textLength as a global SVG attribute
Browse files Browse the repository at this point in the history
It can only be used on SVG <text>, <tspan>, and <textPath>, and
previously <tref> which has been removed now.
  • Loading branch information
foolip committed Jun 5, 2024
1 parent e3b42c6 commit c70925c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 36 deletions.
35 changes: 35 additions & 0 deletions svg/elements/textPath.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,41 @@
}
}
},
"textLength": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/SVG/Attribute/textLength",
"support": {
"chrome": {
"version_added": "1"
},
"chrome_android": "mirror",
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "2"
},
"firefox_android": "mirror",
"ie": {
"version_added": true
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": "3.1"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"xlink_href": {
"__compat": {
"description": "<code>xlink:href</code>",
Expand Down
1 change: 1 addition & 0 deletions svg/elements/tspan.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@
},
"textLength": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/SVG/Attribute/textLength",
"support": {
"chrome": {
"version_added": "1"
Expand Down
36 changes: 0 additions & 36 deletions svg/global_attributes.json
Original file line number Diff line number Diff line change
Expand Up @@ -547,42 +547,6 @@
}
}
},
"textLength": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/SVG/Attribute/textLength",
"spec_url": "https://svgwg.org/svg2-draft/text.html#TextElementTextLengthAttribute",
"support": {
"chrome": {
"version_added": true
},
"chrome_android": "mirror",
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": true
},
"firefox_android": "mirror",
"ie": {
"version_added": "11"
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": true
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"class": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/SVG/Attribute/class",
Expand Down

0 comments on commit c70925c

Please sign in to comment.