-
Notifications
You must be signed in to change notification settings - Fork 642
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
[css-will-change] treatment of upper case values #3155
Comments
I think the future-proofing intentions of Case sensitivity of the comparison should be mentioned. Whatever behavior is decided on we should do the same for |
Yes, it should.
Agreed; we should keep the casing for future-proofing reasons (and just general alignment with the treatment of
This violates the spec and is a bug in Chrome. The only restriction we place on the |
I specified that matching it against property names is case-insensitive, and added a note about unknown names. Haven't yet specified anything about serialization. |
In all 4 main browser engines, |
I'm not super dedicated to fighting this, but that sort of dependent normalization is a forward-compatibility risk; certain values can serialize differently depending on whether the browser recognizes it as a known property or not. I'd prefer if we always left it unchanged, in both of those places. (And in every other place we use a (I presume the normalization is so that the browser can trivially check for it later in a map of property names?) |
How should an upper case
will-change
value like "TRANSFORM" be serialized in specified and computed values? Should it have the same effect as a lower case value?Firefox:
Values like "TRANSFORM" are serialized with their case preserved in specified and computed values.
Case is ignored when matching against property names, e.g. "TRANSFORM" creates a containing block, just like "transform".
Values that are not a case-insensitive match for a property name are still preserved in specified and computed values.
Chrome:
Values like "TRANSFORM" are serialized in lower case in specified and computed values.
Case is ignored when matching against property names, e.g. "TRANSFORM" creates a containing block, just like "transform".
Values that are not a case-insensitive match for a property name are rejected, i.e. specified value serializes as empty string and computed value is "auto".
Safari:
Values like "TRANSFORM" are serialized in lower case in specified and computed values.
Values that are not a case-insensitive match for a property name have their case preserved in the specified value serialization, but the computed value is "auto".
Edge:
The
will-change
property is not supported.The
<custom-ident>
spec mentionsThe will-change spec mentions
Should will-change explicitly mention a case-insensitive match between the custom-ident and propery name?
The text was updated successfully, but these errors were encountered: