blob: 2b6d7f0b68a4f2da7e5bba3056559c2cfb7e0ac6 [file] [log] [blame]
<html>
<head>
<title>CSS4 media query test: prefers-contrast.</title>
<style type="text/css">
#a { color: black; }
#b { color: black; }
#c { color: black; }
#d { color: black; }
@media (prefers-contrast) {
#a { color: green; }
}
@media (prefers-contrast: more) {
#b { color: green; }
}
@media (prefers-contrast: less) {
#c { color: green; }
}
@media (prefers-contrast: no-preference) {
#d { color: green; }
}
</style>
</head>
<body>
<p id="a">This text should be green if the user requested contrast. Black otherwise.</p>
<p id="b">This text should be green if the user requested contrast. Black otherwise.</p>
<p id="c">This text should be green if the user requested contrast. Black otherwise.</p>
<p id="d">This text should be green if the user has not requested contrast. Black otherwise.</p>
</body>
</html>