-
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
Difference between alias and mapping #220
Comments
Also confusing:
But in CSS UI
|
About
The spec was saying
So I guess the course has changed. And probably, we should change this for |
The previous edit in compatibility was done by @zcorpan c497226 Do you agree with moving |
You are right. Sorry, I did not searched more, if only for the note on the history of the feature, saying that this previously existed in prefixed form in most browsers. This note also says that each browser had its own syntax, so As for the other confusing cases, I would be fine with closing this issue by defining the exact meaning of mapping. Specifically, I would like to know if the mapped value should appear in serialization. |
If we already have a definition of |
Yeah, I also think that - Note: This section used to specify the -webkit-appearance property. This is now defined in CSS Basic User Interface Module.
+ Note: This section used to specify the -webkit-appearance property. This is now defined in CSS Basic User Interface Module as an alias of `appearance`. |
Seems like a useful addition. |
It's not defined in Compat spec. There's a placeholder redirecting to where it is defined. So people who are following historical links are properly redirected to the right place. |
I'm OK with moving text around in the compat spec :) |
Sorry to draw attention to such a small detail, but the difference between alias and mapping is not clear to me.
CSS Cascade defines that an alias is replaced by its target and both have the same syntax.
The definition of property value aliases is similar, eg.
-webkit-image-set()
is turned intoimage-set()
.In contrast, browsers preserve mapped values:
I think
-webkit-device-pixel-ratio
,@-webkit-keyframes
, and-webkit-*-gradient()
are not aliases, but maps to the corresponding value (media feature name, rule, function).EDIT
Sorry, both Chrome/Firefox handle
-webkit-*-gradient()
and-webkit-device-pixel-ratio
as mapped values, but Chrome handles@-webkit-keyframes
as a mapped rule but Firefox handles it as an alias, which makes me think that the spec is clear but browsers are not always conformant.The text was updated successfully, but these errors were encountered: