Skip to content

Enable all SVG properties behind a pref - #525

Merged
nicoburns merged 2 commits into
servo:mainfrom
DioxusLabs:enable-svg-properties-servo
Nov 20, 2026
Merged

nicoburns merged 2 commits into
servo:mainfrom
DioxusLabs:enable-svg-properties-servo

Conversation

@nicoburns

@nicoburns nicoburns commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

Blitz is implementing DOM-based (and thus Stylo based) SVG support, so we would like the SVG properties.

I've just enabled everything here. I suspect Servo might want to enable things on a finer-grained basis as it brings up an SVG implementation, but I wasn't sure what the subsets would be and I figure that we just change the prefs around once we know. The exception is transform-box which isn't really an SVG property. I've put that under it's own pref.

Servo PR:

Comment thread style/properties/longhands.toml Outdated
servo_restyle_damage = "rebuild_stacking_context"

[clip-rule]
servo_pref = "layout.css.svg-properties.enabled"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Seems a bit weird to put it at the very top, since that's the most noticeable spot. I would put it where engine was.

@nicoburns
nicoburns force-pushed the enable-svg-properties-servo branch from f70a057 to 415567f Compare November 20, 2026 02:30
@nicoburns
nicoburns added this pull request to the merge queue Nov 20, 2026
Merged via the queue into servo:main with commit 9746440 Nov 20, 2026
6 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.

2 participants