Skip to content
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

What is this ButtonText keyword? #24

Closed
beefchimi opened this issue Mar 3, 2018 · 1 comment
Closed

What is this ButtonText keyword? #24

beefchimi opened this issue Mar 3, 2018 · 1 comment

Comments

@beefchimi
Copy link

Reading through the code and I stumble upon:
https://github.com/sindresorhus/modern-normalize/blob/master/modern-normalize.css#L209

Never seen this keyword before... did a search in Issues and didn't see anyone else asking, nor did I find any useful google results.

Would love to read a bit of info on this 😄 ... perhaps its even worth adding to the comment of this style block to inform consumers what this keyword is all about.

Thanks for another excellent contribution. Have followed your work for a long time - forever awesome ✊

@arcticicestudio
Copy link

arcticicestudio commented Mar 4, 2018

The ButtonText is a system color variable defined in the CSS2 (:exclamation:) specification where these colors have also been deprecated.

ButtonText
Text on push buttons. Should be used with the ButtonFace or ThreeDFace background color.

MDN also says:

Not all system colors are supported on all systems. 👎 for use on public web pages.

This is also in the master branch of the origin normalize.css project. It seems like the block you've linked has been copied directly from the Firefox source code.

One of the normalize.css maintainers also said in necolas/normalize.css#481 (comment):

[...] For future reference (who knows if or who will revisit this issue), my concern with outline: 1px solid is what omitting the color on outline does. For instance, when the color is omitted on a border, its default value is the value of the element's color property, which would be the same as using inherit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants