Last active
July 22, 2024 19:22
-
-
Save erhangundogan/a74d17da391fadf11273ff27a6472212 to your computer and use it in GitHub Desktop.
sRGB display-p3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* https://webkit.org/blog/10042/wide-gamut-color-in-css-with-display-p3/ */ | |
/* sRGB color */ | |
:root { | |
--deepest-pink: deeppink; | |
} | |
/* Display-P3 color, when supported */ | |
@supports (color: color(display-p3 1 1 1)) { | |
:root { | |
--deepest-pink: color(display-p3 1 0 0.5); | |
} | |
} | |
header { | |
color: var(--deepest-pink); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment