compat icon indicating copy to clipboard operation
compat copied to clipboard

Remove -webkit-mask-box from the legacy alias name so they stand on their own.

Open karlcow opened this issue 2 years ago • 11 comments

6 years later no browsers are implementing mask-border and variants. We should probably remove -webkit-mask-box from the legacy alias name, and move them to a section where we say that they need to be supported on their own.

Originally posted by @karlcow in https://github.com/whatwg/compat/issues/14#issuecomment-1162736602

Maybe a note could be added that the intent is that they would be used/aliased as mask-border, but at this time nobody does, nor even implement mask-border.

karlcow avatar Jun 22 '22 07:06 karlcow

As of today

canIuse mask-border is in fact just mentioning -webkit-mask-box

That looks pretty dead to me as an alias for now.

@birtles I see you are one of the spec editors. Do you see any progress? @tabatkins do you know if Google has an intent to implement mask-border?

@miketaylr Should we move these properties in their own section as there is no real implemented mapping 1-1 to a non-aliased one.

karlcow avatar Jun 23 '22 01:06 karlcow

Sorry, I haven't touched that spec for years.

birtles avatar Jun 23 '22 01:06 birtles

I didn't find any breakage on webcompat issues related to -webkit-mask-box and mask-border.

On GitHub, CSS are usually already associating the two propoerties with the same value.

karlcow avatar Jun 23 '22 01:06 karlcow

I think the most important thing is to keep linking to https://drafts.fxtf.org/css-masking/#the-mask-border-source etc, since that's where it's properly specced (even without unprefixed implementations). Whether that is considered a legacy alias, or its own thing - I don't think it matters much.

Possibly browsers implement the unprefixed props one day, and then it becomes a legacy alias. Do we move things back?

miketaylr avatar Jun 23 '22 17:06 miketaylr

Possibly browsers implement the unprefixed props one day, and then it becomes a legacy alias. Do we move things back?

yes.

karlcow avatar Jun 23 '22 19:06 karlcow

Sure, that works for me (I'm also fine with doing nothing ^___^).

miketaylr avatar Jun 23 '22 20:06 miketaylr

@miketaylr what about if I send a PR to add a comment similar to the one about -webkit-background-size pointing to this issue here? https://compat.spec.whatwg.org/#css-simple-aliases

karlcow avatar Jun 24 '22 03:06 karlcow

SGTM!

miketaylr avatar Jun 24 '22 13:06 miketaylr

I think the most important thing is to keep linking to https://drafts.fxtf.org/css-masking/#the-mask-border-source etc, since that's where it's properly specced (even without unprefixed implementations).

Strong +1 to this.

Whether that is considered a legacy alias, or its own thing - I don't think it matters much.

Honestly I'm a bit skeptical about how much value there is in this. Even just putting a note saying that this isn't actually an alias in existing implementations seems… kinda sensible? Or maybe we need some new concept for aliasing which isn't aliasing that can also cover things like -webkit-box where we want it to be an "alias" of the Flexbox [X] WD.

gsnedders avatar Jun 24 '22 16:06 gsnedders

yes. The way I understand the aliasing section is that:

Hey here, you need to support these values as aliases of these because if you do not the sites will break.

While in this case, none of the browsers, actually implement the other values. So for now it is really a case of

you need to implement these CSS properties with the behavior defined in the spec defining mask-border

which is not aliasing.

karlcow avatar Jun 27 '22 03:06 karlcow

Related to our discussion

  • #121

karlcow avatar Jun 27 '22 05:06 karlcow