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

[css-ui] [css-color] Tangent on system colors and appearance being both deprecated #2302

Closed
sabithpocker opened this issue Feb 12, 2018 · 2 comments
Assignees
Labels
Closed as Question Answered Used when the issue is more of a question than a problem, and it's been answered. Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-color-4 Current Work css-ui-4 Current Work Tracked in DoC

Comments

@sabithpocker
Copy link

I am quoting from an outdated document here (as it is the only place a reason is mentioned for the deprecation of System Colors)

The CSS2 System Color values have been deprecated in favor of the CSS3 UI 'appearance' property for specifying the complete look of user interface related elements.

It now appears that appearance won't be taking up this responsibility and this quoted line has been removed from later versions of the document. The reason why System Colors was deprecated and if appearance will provide an alternative remains vague as of now.

How do we proceed with scenarios where we have to style elements to look as native as possible?

@svgeesus
Copy link
Contributor

System colors were introduced from Java, which wanted to make native-looking dialogs matching the then-current windowing systems (Windows 95 and MacOS 7). It was unable to do even that, and the introduction of titlebar gradients in Windows 98 made it clear that chasing platform look would always be an elusive, moving target.
In addition, the security implications of being able to accurately fake native UI were becoming apparent.
appearance was an attempt to match native appearance without specifying exactly what that was like. The timeframe there was the appearance of brightly-colored iMacs whose UI theming reflected the case color (there was a flavor keyword for that, too). these proposals were too vaguely worded to really be implementable, saw little developer interest and thus were also dropped.

How do we proceed with scenarios where we have to style elements to look as native as possible?

With great caution and a full understanding of the spoofing risks involved; by deciding exactly what UI on what platform at what point in time you want to emulate; and with the realization that your styling will be fragile and need re-doing every few years.

@sabithpocker
Copy link
Author

Sounds totally sane. Closing this issue.

User Agent Colors that would expose a subset of colors used in User Agent Style Sheet is something I am thinking about right now, but I am pretty sure that you guys have gone through this before going for flavor. Such a color-set (actually just exposing a subset of color set used by UA) can make a web-page look kind of native in respective User-Agents.

@frivoal frivoal added the Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. label Feb 14, 2018
@frivoal frivoal added Closed as Question Answered Used when the issue is more of a question than a problem, and it's been answered. Tracked in DoC labels Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed as Question Answered Used when the issue is more of a question than a problem, and it's been answered. Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-color-4 Current Work css-ui-4 Current Work Tracked in DoC
Projects
None yet
Development

No branches or pull requests

3 participants