]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
src/svgtiny_strings.h: add "media" to the list of strings
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 4 Oct 2023 03:03:30 +0000 (23:03 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 4 Oct 2023 03:17:25 +0000 (23:17 -0400)
The "media" attribute is arguably the only meaningful attribute a
<style> element has within an SVG document. Here we intern the string
"media" in preparation for parsing <style>. Libcss can at least store
the media information even if we decide not to use it.

src/svgtiny_strings.h

index d075eb6fc0b7c330afe41e98862ac6d466ef39c4..dfd6c2253a44dbeceaee0db688134a635ca6d811 100644 (file)
@@ -41,6 +41,7 @@ SVGTINY_STRING_ACTION(tspan)
 SVGTINY_STRING_ACTION(fill)
 SVGTINY_STRING_ACTION(stroke)
 SVGTINY_STRING_ACTION(style)
+SVGTINY_STRING_ACTION(media)
 SVGTINY_STRING_ACTION(transform)
 SVGTINY_STRING_ACTION(linearGradient)
 SVGTINY_STRING_ACTION(href)