[csswg-drafts] Pull Request: Add @media (interface)

frivoal has just labeled a pull request from jonathantneal for https://github.com/w3c/csswg-drafts as "mediaqueries-5":

== Add @media (interface) ==
This is a rough-draft proposal of a new media feature used to query about the color scheme being used by the operating system.


```css
/* define colors when the interface is light (dark text on a light background) */
@media (interface: light) {
  html { background: #fff; color: #000 }
  a { color: #0000d6 }
}

/* define colors when the interface is dark (light text on a dark background) */
@media (interface: dark) {
  html { background: #000; color: #fff }
  a { color: #00c0ff }
}
```

Applications will respond to these interface changes, and so it will be helpful if webapps can as well.

Related to #2735.


See https://github.com/w3c/csswg-drafts/pull/2742

Received on Wednesday, 6 June 2018 08:27:26 UTC