Skip to content

Enable SVG-related CSS properties for Servo#383

Draft
mu-mostafa98 wants to merge 2 commits into
servo:mainfrom
mu-mostafa98:enable-svg-styling-for-servo
Draft

Enable SVG-related CSS properties for Servo#383
mu-mostafa98 wants to merge 2 commits into
servo:mainfrom
mu-mostafa98:enable-svg-styling-for-servo

Conversation

@mu-mostafa98
Copy link
Copy Markdown

@mu-mostafa98 mu-mostafa98 commented Jun 5, 2026

Enable SVG CSS properties needed for Servo system.

  • Remove engine = "gecko" and servo_pref = "layout.unimplemented" gating
    from properties that should now be available in Servo builds
  • Add servo_restyle_damage = "repaint" to properties that were missing
    this directive so Servo knows to repaint when they change
  • Servo PR

- Remove engine = gecko gating and servo_pref gating from SVG
properties and shorthands.
- Update size_of_test.

Signed-off-by: Mohamed Mostafa mu-mostafa98@gmail.com
@mu-mostafa98 mu-mostafa98 force-pushed the enable-svg-styling-for-servo branch from 8fb5e33 to 0145c94 Compare June 6, 2026 08:52
Copy link
Copy Markdown
Contributor

@xiaochengh xiaochengh left a comment

Choose a reason for hiding this comment

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

Thanks for working on this!

We discussed offline and found this all-in-one PR hard to review. We will change the plan:

  • First, enable only a small set of properties for basic shapes in Stylo
  • And then, implement the basic shapes and these properties in Servo
  • Iterate the above process, and progressively enable more properties in Stylo and implement them in Servo

This way we can make sure that we don't introduce any unintended changes.

…and keep SVG only

Signed-off-by: Mohamed Mostafa mu-mostafa98@gmail.com
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