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

[css-masking-1] Clarify effect of mask-image: none #563

Open
johannesodland opened this issue Jun 17, 2024 · 1 comment
Open

[css-masking-1] Clarify effect of mask-image: none #563

johannesodland opened this issue Jun 17, 2024 · 1 comment

Comments

@johannesodland
Copy link

Although mask-image: none intuitively reads as not masking the element, it is somewhat unclear from the spec text.

In a previous version of the spec, it was explicitly stated that the element is not masked:

A value of none counts as an image layer but does not mask the element.

However, in later versions this has been changed to the following:

A value of none counts as a transparent black image layer.

This text by itself makes it seem like the element is made transparent, as masking by a transparent black image would have the same effect as setting opacity: 0. Only by reading the Mask Image Rendering Model you find out that masking is only applied when mask-image is other than none.

Could we clarify that a value of none does not mask the element, either by adding a note or adding it to the spec text?
The same applies to mask-border-source where it's clarified that an empty or failing image will not mask the element, but a similar definition for none is missing.

@ydaniv
Copy link

ydaniv commented Jun 18, 2024

Looks like an error. Should be opaque white image layer.

cc @tabatkins

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

No branches or pull requests

2 participants