File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 645645 "description" : " A media query to detect if the user has requested the system use a light or dark color theme" ,
646646 "specification" : " https://drafts.csswg.org/mediaqueries-5/#prefers-color-scheme" ,
647647 "stage" : 1 ,
648- "example" : " body {\n background-color: white;\n color: black;\n }\n\n @media (prefers-color-scheme: dark) {\n body {\n background-color: black;\n color: white;\n }\n }"
648+ "caniuse-compat" : {
649+ "ios_saf" : {
650+ "12.1" : " y"
651+ },
652+ "safari" : {
653+ "12.1" : " y"
654+ }
655+ },
656+ "example" : " body {\n background-color: white;\n color: black;\n }\n\n @media (prefers-color-scheme: dark) {\n body {\n background-color: black;\n color: white;\n }\n }" ,
657+ "polyfills" : [
658+ {
659+ "type" : " JavaScript Library" ,
660+ "link" : " https://github.com/csstools/css-prefers-color-scheme"
661+ },
662+ {
663+ "type" : " PostCSS Plugin" ,
664+ "link" : " https://github.com/csstools/css-prefers-color-scheme"
665+ }
666+ ]
649667 },
650668 {
651669 "id" : " prefers-reduced-motion-query" ,
You can’t perform that action at this time.
0 commit comments