]> gitweb.michael.orlitzky.com - libsvgtiny.git/commit
src/svgtiny_css.c: new function svgtiny_create_stylesheet()
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 11 Oct 2023 12:27:22 +0000 (08:27 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 8 Jun 2025 02:18:20 +0000 (22:18 -0400)
commitf20f5a5004513d5c376b2783ac905b84c6d0089a
tree109b8772646ada03b97edcf3099167a83e831a5c
parent59eb5c29e4e221e1794930b33e86dc4e5c397f21
src/svgtiny_css.c: new function svgtiny_create_stylesheet()

We add a function to handle the creation of a new stylesheet with the
default set of parameters. This is in preparation for parsing the
inline styles, which a priori would involve copy/pasting a lot of

  params.foo = bar;

lines from svgtiny_parse_style_element(). The goal is to factor the
common bits out of both the <style> and style= implementations.
src/svgtiny_css.c