-
Notifications
You must be signed in to change notification settings - Fork 41
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
Is it okay to just alias -webkit-mask-composite to mask-composite? #153
Comments
It could just be a bug due to me not understanding it well. |
See also:
|
Looking at https://www.w3.org/TR/css-masking-1/#the-mask-composite
That seems to match what is in properties-db.js. So yeah, this isn't a "simple alias", but an alias that only supports the subset of values that match the unprefixed values. |
It seems that list conflicts with webkit and blink implementations, it seems they don't overlap and MDN is right about it?
|
We could do one of two things: document what Gecko does, or keep this as a simple alias. I suspect it's not worth the effort for Gecko to implement all the values, without any evidence that this breaks sites. What do you think @saschanaz? |
I think those two options are same given that Gecko implements it as a simple alias. There at least should be a note that the aliased -webkit-mask-composite is incompatible with webkit/blink implementation (although then I'm not sure why the alias should even exist). |
I just noticed simple alias isn't even defined, and we should fix that.
I think this largely depends on what values are important for web compatibility. If no important sites use |
My comments are largely based on the MDN data and spec, for actual implementation I guess @emilio might have an opinion. |
Shouldn't we try to get all three browsers to converge on a single interoperable behavior, and have the spec reflect whatever that is? |
Yeah, that's ideal. Unfortunately I don't recall the circumstances surrounding the addition of We could do the research to determine which values are important for compat, beyond (I guess that's the entire point of this issue being opened and I was too quick to reply. 🙈 ) |
Really? |
Yeah, so what we implement is just an alias for Blaming it, it goes back to the original implementation of the property in https://bugzilla.mozilla.org/show_bug.cgi?id=686281: https://hg.mozilla.org/mozilla-central/rev/f6eba571ce59. So this is a bit messy. It was probably just added for consistency with other mask aliases which do share syntax per https://bugzilla.mozilla.org/show_bug.cgi?id=686281#c167. cc @dbaron in case he remembers more context. |
I don't remember, other than that that bug went through quite a few cycles of review and it was hard to keep track of at the time. I don't think I was aware there was a syntax difference. |
Indeed. If I'm understanding correctly:
w3c/fxtf-drafts@bb5f277 seems to be the spec change which changed away from what Blink/WebKit implement, though it doesn't link to any resolution or issues, hence I don't know how broad support for the simplification was at the time. Note that Blink & WebKit only support the prefixed property, so even if the totally different Gecko implementation is some level of evidence that sites don't rely on the prefixed property, it may only be because they additionally support the unprefixed property. On the face of it, the options are:
|
Current usage as defined by chrome is 0.186841% it would be interesting to have the stats for the values in fact. not a lot of matches but some patterns (⭐ most common)
Examples:
|
Thanks for the digging, @karlcow! |
d1ac0cf just added all the mask things as aliases, but per MDN the syntax of this specific one is quite different. Why is it safe to just alias it?
The text was updated successfully, but these errors were encountered: