layout/reftests/css-mediaqueries/mq_prefers_color_scheme_no_preference.html
author Jonathan Kingston <jkt@mozilla.com>
Fri, 15 Feb 2019 21:40:35 +0100
changeset 459565 4739353088fcad81bc126deab56e8de0fad7a88a
permissions -rw-r--r--
Bug 1494034 - Add support for CSS prefers-color-scheme media feature. r=emilio

<!doctype html>
<meta charset="utf-8">
<html>
<title>prefers-color-scheme: no-preference</title>
<style>
div {
  width: 100px;
  height: 100px;
}

@media (prefers-color-scheme: no-preference) {
  div { background-color: green; }
}
@media (prefers-color-scheme: light) {
  div { background-color: red; }
}
@media (prefers-color-scheme: dark) {
  div { background-color: red; }
}
</style>
<div></div>
</html>