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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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!

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.

None yet

1 participant