Skip to content

Commit

Permalink
Add SVG deprecated as discouraged feature (#2485)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnw authored Jan 7, 2025
1 parent 72f94c3 commit 06a9bed
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 39 deletions.
31 changes: 10 additions & 21 deletions features/draft/svg-deprecated.yml → features/svg-discouraged.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
draft_date: 2024-10-085
name: svg-deprecated
description: Placeholder for deprecated or non-real features
spec: https://svgwg.org/svg2-draft/
name: SVG 1.1 (discouraged)
description: The SVG 1.1 image format has several components that were excluded from SVG 2, such as fonts, alternate glyphs, and the `xlink` namespace.
spec: https://www.w3.org/TR/SVG11/
discouraged:
according_to:
- https://svgwg.org/svg2-draft/changes.html#substantial
alternatives:
- svg
- font-face
compat_features:
- api.SVGAElement.ping
- api.SVGAElement.text
- api.SVGCursorElement
- api.SVGFontElement
- api.SVGFontFaceElement
- api.SVGFontFaceFormatElement
Expand All @@ -24,15 +27,7 @@ compat_features:
- api.SVGHKernElement
- api.SVGMissingGlyphElement
- api.SVGRenderingIntent
- api.SVGTRefElement
- api.SVGVKernElement
- svg.elements.a.ping
- svg.elements.cursor
- svg.elements.cursor.href
- svg.elements.cursor.systemLanguage
- svg.elements.cursor.x
- svg.elements.cursor.xlink_href
- svg.elements.cursor.y
- svg.elements.font
- svg.elements.font-face
- svg.elements.font-face-format
Expand Down Expand Up @@ -112,19 +107,12 @@ compat_features:
- svg.elements.missing-glyph.vert-adv-y
- svg.elements.missing-glyph.vert-origin-x
- svg.elements.missing-glyph.vert-origin-y
- svg.elements.tref
- svg.elements.tref.fill
- svg.elements.tref.fill.context-fill
- svg.elements.tref.systemLanguage
- svg.elements.tref.xlink_href
- svg.elements.vkern
- svg.elements.vkern.g1
- svg.elements.vkern.g2
- svg.elements.vkern.k
- svg.elements.vkern.u1
- svg.elements.vkern.u2

# Confirmed to be DEPRECATED
- svg.global_attributes.glyph-orientation-horizontal
- svg.global_attributes.glyph-orientation-vertical
- api.SVGSVGElement.currentView
Expand Down Expand Up @@ -181,3 +169,4 @@ compat_features:
- api.SVGPoint.matrixTransform
- api.SVGPoint.x
- api.SVGPoint.y
- svg.elements.script.xlink_href
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
# Generated from: svg-deprecated.yml
# Generated from: svg-discouraged.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support: {}
compat_features:
# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "1"
# chrome_android: "18"
# edge: "79"
# firefox: "1.5"
# firefox_android: "4"
# safari: "3"
# safari_ios: "2"
- svg.elements.script.xlink_href

# baseline: false
# support:
# chrome: "1"
Expand Down Expand Up @@ -234,9 +247,7 @@ compat_features:
# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support: {}
- api.SVGAElement.ping
- api.SVGAElement.text
- api.SVGCursorElement
- api.SVGFontElement
- api.SVGFontFaceElement
- api.SVGFontFaceFormatElement
Expand All @@ -255,15 +266,7 @@ compat_features:
- api.SVGHKernElement
- api.SVGMissingGlyphElement
- api.SVGRenderingIntent
- api.SVGTRefElement
- api.SVGVKernElement
- svg.elements.a.ping
- svg.elements.cursor
- svg.elements.cursor.href
- svg.elements.cursor.systemLanguage
- svg.elements.cursor.x
- svg.elements.cursor.xlink_href
- svg.elements.cursor.y
- svg.elements.font
- svg.elements.font-face
- svg.elements.font-face-format
Expand Down Expand Up @@ -343,11 +346,6 @@ compat_features:
- svg.elements.missing-glyph.vert-adv-y
- svg.elements.missing-glyph.vert-origin-x
- svg.elements.missing-glyph.vert-origin-y
- svg.elements.tref
- svg.elements.tref.fill
- svg.elements.tref.fill.context-fill
- svg.elements.tref.systemLanguage
- svg.elements.tref.xlink_href
- svg.elements.vkern
- svg.elements.vkern.g1
- svg.elements.vkern.g2
Expand Down
1 change: 0 additions & 1 deletion features/svg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ compat_features:
- svg.elements.script
- svg.elements.script.href
- svg.elements.script.type
- svg.elements.script.xlink_href
- svg.elements.set
- svg.elements.set.fill
- svg.elements.set.href
Expand Down
1 change: 0 additions & 1 deletion features/svg.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,6 @@ compat_features:
- svg.elements.radialGradient.r
- svg.elements.radialGradient.spreadMethod
- svg.elements.script.type
- svg.elements.script.xlink_href
- svg.elements.style.media
- svg.elements.style.title
- svg.elements.style.type
Expand Down

0 comments on commit 06a9bed

Please sign in to comment.