Re: [Inkscape-devel] Style dialog
On Mon, Jun 13, 2016 at 1:50 PM, Tavmjong Bah <tavmjong@...8...> wrote:
First, while allowed in SVG, most people would expect only one <style> element in an SVG, usually near the top. I'm not sure that Inkscape's ability to properly handle more than one internal style sheet has been properly tested (it does seem to work).
Will the SVG have only one style element at the top as you mentioned? This style element will have multiple selectors in it. Can one style element have multiple selectors?
Other way could be like I am doing currently, adding a new style element whenever a new style element is selected. In this case, there will be one selector for each style element.
Which one should be adopted for Inkscape?
I didn't follow this thread too closely, so I'm sorry if these things were already discussed earlier.
On 14 June 2016 at 08:56, Kamalpreet Grewal <grewalkamal005@...400...> wrote:
On Mon, Jun 13, 2016 at 1:50 PM, Tavmjong Bah <tavmjong@...8...> wrote:
First, while allowed in SVG, most people would expect only one <style> element in an SVG, usually near the top. I'm not sure that Inkscape's ability to properly handle more than one internal style sheet has been properly tested (it does seem to work).
Will the SVG have only one style element at the top as you mentioned? This style element will have multiple selectors in it. Can one style element have multiple selectors?
According to the SVG standard it obviously can have arbitrary CSS in it, so, also rules with multiple selectors.
Other way could be like I am doing currently, adding a new style element whenever a new style element is selected. In this case, there will be one selector for each style element.
Which one should be adopted for Inkscape?
Having multiple <style> elements only blows up the file size and makes the document structure rather complicated. One <style> element holding all the CSS would therefore definitely be preferred.
Sebastian
participants (2)
-
Kamalpreet Grewal
-
Sebastian Zartner