-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Apple Pay styling should not be treated as color #217
Comments
Maybe we should blacklist browser specific statements in general? This would also disable minification for the range of |
I think it's probably better to assume that something is a colour only when it's used in a position or at least a property that definitely can hold colours, and treat it as a generic identifier otherwise. This might potentially degrade some minification, but would be more fail- and future-proof and would always allow to extend that whitelist if required. |
Hey @RReverser, I know it's been a long time ago, but if you have time it would be great if you could test the latest push to |
Safari has special vendored CSS properties for Apple Pay button styling: https://developer.apple.com/documentation/apple_pay_on_the_web/displaying_apple_pay_buttons
As seen from the docs, one of these properties might look like following:
Currently minifier assumes that
black
andwhite
are regular CSS colors, no matter what property they're in, and minifies them to#000
and#fff
correspondingly, which break styling, as for Safari these are expected to be regular names.This could be treated as a browser-specific quirks and disabled just for that particular property, but blacklisting doesn't like a very failproof solution, since there are other contexts where regular identifiers might potentially have name collisions with colors, but shouldn't be treated as such.
The text was updated successfully, but these errors were encountered: