Skip to content

Commit 4d0d01f

Browse files
committed
Update caniuse-compat and polyfills for prefers-color-scheme-query
1 parent da0154e commit 4d0d01f

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

cssdb.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,25 @@
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",

0 commit comments

Comments
 (0)