whatwg / compat

Compatibility Standard
https://compat.spec.whatwg.org/
Other
113 stars 41 forks source link

Use legacy name alias concept #121

Open miketaylr opened 4 years ago

miketaylr commented 4 years ago

https://drafts.csswg.org/css-cascade-4/#legacy-name-alias

When the old property’s syntax is identical to or a subset of the value space of the new property’s syntax, the two names are aliased with an operation on par with case-mapping: at parse time, the old property is converted into the new property. This conversion also applies in the CSSOM, both for string arguments and property accessors: requests for the old property name transparently transfer to the new property name instead.

Perhaps we can use this instead of the concept of simple property alias.

(cf @zcorpan's suggestion in https://github.com/w3c/csswg-drafts/issues/4839)

miketaylr commented 3 years ago

Helpful pointer from @gsnedders, https://github.com/whatwg/compat/issues/154#issuecomment-891406539