You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
However, in later versions this has been changed to the following:
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 whenmask-image
is other thannone
.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 fornone
is missing.The text was updated successfully, but these errors were encountered: