Unverified50% confidenceFactExact time
CSS's light-dark() color function allows both light and dark values to be given in the same property declaration, and the browser automatically chooses based on the currently effective color scheme.
1
Sources
50%
Confidence
Long-term
Relevance
10/15/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedIn CSS, the default value of box-shadow, text-shadow, and border-color is the current element's color value, so there is no need to explicitly declare currentColor.78% similarUnverifiedBy declaring color-scheme: dark or color-scheme: light on an element, all light-dark() values inside that element can be forced to lock to the specified color scheme, unaffected by the global theme.76% similarUnverifiedCSS颜色函数中,颜色值超出范围时会自动裁剪(gamut mapping):大于1的值认为是1,小于0的值认为是076% similarUnverifiedRelative colors allow referencing the original color within any color function and modifying the alpha channel, and can operate across color spaces.74% similarUnverifiedCSS Color Level 4 introduced support for modern color spaces such as oklch, oklab, and display-p3, enabling CSS to describe wide-gamut colors beyond the traditional sRGB color gamut.73% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1038241API
curl https://kongchang.com/api/v1/knowledge/claims/1038241MCP
get_claim(id=1038241)