]> gitweb.michael.orlitzky.com - libsvgtiny.git/commit
src/svgtiny_parse.c: add svgtiny_parse_style_inline() function
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 7 Jun 2025 14:49:17 +0000 (10:49 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 8 Jun 2025 02:18:20 +0000 (22:18 -0400)
commitefd9f1bb8f7c1c65a219129b374f645188d507fd
treece305ed23e9d11de345c5ec89f1d2f9ae918324b
parent8077cc1902ffd0297d811c39f21f61bf802c2b01
src/svgtiny_parse.c: add svgtiny_parse_style_inline() function

This function parses the contents of an inline style="..." attribute
into a libcss stylesheet, or NULL if anything went wrong.

We use the new function in svgtiny_parse_paint_attributes() to parse
an inline sheet... and then (for now) do nothing with it. We are able
to parse the inline style="..." attributes right now but more
scaffolding is needed before we can utilize css_select_style().
src/svgtiny_parse.c