-
Notifications
You must be signed in to change notification settings - Fork 689
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-env] device body colour #5826
Comments
This would make more sense as an environment variable inside |
Excellent idea! I forgot about env(), but this is exactly what they should be used for. |
We used to have this in CSS Color 3, (Not an argument against this proposal, just a point of reference) |
This is entirely unrelated to environment blending, by the way. |
I agree it makes sense as part of |
Oh wow thanks! This is interesting, and you're right, I remember it well - the majority of web-capable devices were beige or iMac G3s then. |
Just wanna bring up references to similar requests/cases previously brought to the group. Webkits initial proposal for user agent properties - #1693
Request for access to document-specific metadata via env() - #575
Can we solve all these together? |
Thank you for gathering these. They seem to be related properties. Not sure if they can be consolidated into a neat collection with smart defaults or inheritance under any one of the functions without complicating some use case, but it should be an advantage for developers if they can |
The diversity of device body colours currently available is something which could be taken into consideration during user interface design.
Proposal
Where available, a device body colour could be employed in page background or border design decisions (or even whether a border need be included for a given device at all).
Although the device body does form part of the aesthetic, there probably aren't any accessibility benefits.
Apple's iOS and watchOS operating systems certainly make this value available to application developers already (it may exist on macOS or other manufacturer's systems), but web browsers don't have a way to expose it to web developers.
Example
Advantages
Disadvantages
Device fingerprinting, possibly, subject to implementation
Reference
Media queries Level 5 is a work in progress, but the closest existing section might be Environment Blending
The text was updated successfully, but these errors were encountered: