prefers-contrast-005.html (382B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>no contrast preference should cause a black box to be 6 drawn</title> 7 8 <style type="text/css"> 9 div { 10 width: 100px; 11 height: 100px; 12 } 13 @media(prefers-contrast: no-preference) { 14 div { 15 outline: 2px solid black; 16 } 17 } 18 </style> 19 </head> 20 <body> 21 <div></div> 22 </body> 23 </html>