css-reference-issues icon indicating copy to clipboard operation
css-reference-issues copied to clipboard

Mask Module

Open seyedi opened this issue 7 years ago • 3 comments

Hi,

In mask-repeat entry this paragraph is not correct now:

The mask-repeat property works and has the same values as the background-repeat, except that the latter’s initial value is repeat, while the mask-repeat‘s initial value is no-repeat.

initial value for this property is repeat

https://developer.mozilla.org/en-US/docs/Web/CSS/mask-repeat

And in the mask-mode entry there is no auto keyword anymore as a value, it's called match-source now.

https://developer.mozilla.org/en-US/docs/Web/CSS/mask-mode

Also mask-position's initial value is not center it's at the top left corner:

https://tympanus.net/codrops/css_reference/mask-position/

seyedi avatar Aug 16 '17 06:08 seyedi

Hi, thanks for submitting these! Except for the mask-mode "match-source", the other points are still correct regarding the specs: https://drafts.fxtf.org/css-masking-1/#the-mask-repeat https://drafts.fxtf.org/css-masking-1/#the-mask-position

I'm not sure why it's mentioned differently in MDN, any ideas?

Thanks again

crnacura avatar Sep 05 '17 11:09 crnacura

It's not only MDN, the implementations on browsers are similar. It seems that they want to change the spec to match the WebKit/Chrome behavior.

Take a look at these: https://github.com/w3c/csswg-drafts/issues/599 https://github.com/w3c/fxtf-drafts/issues/111

Thank you.

seyedi avatar Sep 06 '17 07:09 seyedi

Ok, that clarifies it! Thanks for the links, I'll update it as soon as possible.

crnacura avatar Sep 06 '17 09:09 crnacura