Skip to content

Svg style element and Paintserver for CSS variables - #1222

Merged
mrbean-bremen merged 11 commits into
svg-net:masterfrom
FStepper-WI:SvgStyle-Element
Jul 22, 2026
Merged

mrbean-bremen merged 11 commits into
svg-net:masterfrom
FStepper-WI:SvgStyle-Element

Conversation

@FStepper-WI

Copy link
Copy Markdown
Contributor

Reference Issue

Fixes: #1221

What does this implement/fix? Explain your changes.

  • Added basic support for the SvgStyle element.
  • Added support for SvgCssVariablePaintServer so declared CSS variables can be used as paint servers.

Any other comments?

Color will resolve even when variables are declared at an ancestor level.

Comment thread Source/Document Structure/SvgStyle.cs Outdated
Comment thread Source/Document Structure/SvgStyle.cs
Comment thread Source/Painting/SvgPaintServerFactory.cs
Comment thread Source/Painting/SvgPaintServerFactory.cs

[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public int SeletedTabIndex { get => _seletedTabIndex; set => _seletedTabIndex = value; }
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these changes related to the PR?

@FStepper-WI FStepper-WI Jul 21, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had issues building in VS and i thought this would be relevant. This suppresses a warning that the properties are visible to the designer even though they shouldn't be. If you want me to revert it I can do so.

@mrbean-bremen
mrbean-bremen merged commit 21536d3 into svg-net:master Jul 22, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support SVG <style> Elements and CSS Variable Paint References

2 participants