Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port full gradient support to blitz #130

Merged
merged 1 commit into from
Sep 9, 2024
Merged

Conversation

sepcnt
Copy link
Contributor

@sepcnt sepcnt commented Sep 9, 2024

This PR revives the long-stalled PR from jkelleyrtp/stylo-dioxus#4.

It adds full gradient support. Note that due to Vello's behavior, it follows the SVG schema rather than the web schema by default ("transparent" is #00000000 rather than #FFFFFF00 in color mixing), so some gradients may differ.

Copy link
Collaborator

@nicoburns nicoburns left a comment

Choose a reason for hiding this comment

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

Ah amazing. I was hoping that you would revive that PR! I am not able to verify the math, but this seems to fix the rendering of the linear gradient on servo.org (it now matches chrome), and even an incorrect rendering of the radial and conic gradients will be much better than what we currently have (which panics!), so I'm happy to trust that it is correct :)

@nicoburns nicoburns enabled auto-merge (squash) September 9, 2024 15:24
@nicoburns nicoburns merged commit 5847231 into DioxusLabs:main Sep 9, 2024
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.

2 participants