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

Add support for mask-border-* properties #2139

Merged
merged 4 commits into from
Jun 8, 2024
Merged

Add support for mask-border-* properties #2139

merged 4 commits into from
Jun 8, 2024

Conversation

xavidotron
Copy link
Contributor

Add support for the mask-border-* properties as specified in https://drafts.fxtf.org/css-masking/#the-mask-border.

These can be handy when you want a background to extend exactly to an irregular image border, but don't want the background to stretch the same way the border does. It can also be useful for other cases where you want a non-rectangular box with a size depending on its content, and such.

This was surprisingly straightforward to add since I could reuse a lot of code from #2125.

Note for any comparison testing that Chrome uses -webkit-mask-box-image-* properties rather than the "standard" names.

Let me know if you need anything else. Thanks for your consideration!

@liZe
Copy link
Member

liZe commented Jun 8, 2024

Thank you!

@liZe liZe merged commit dd57e17 into Kozea:main Jun 8, 2024
6 checks passed
@liZe liZe added this to the 63.0 milestone Jun 8, 2024
@liZe liZe added the feature New feature that should be supported label Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature that should be supported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants