Skip to content

Commit

Permalink
[css-color-5] Enable light-dark() by default
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=262914
rdar://117033939

Reviewed by Wenson Hsieh.

Enable support for light-dark(<color>, <color>). This function computes to the
computed value of the first color, if the used color scheme is light or unknown,
or to the computed value of the second color, if the used color scheme is dark.

Spec: https://drafts.csswg.org/css-color-5/#light-dark

* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:

Canonical link: https://commits.webkit.org/273634@main
  • Loading branch information
pxlcoder committed Jan 29, 2024
1 parent 3c75b06 commit 42f9569
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1114,17 +1114,17 @@ CSSInputSecurityEnabled:

CSSLightDarkEnabled:
type: bool
status: testable
status: stable
category: css
humanReadableName: "CSS light-dark()"
humanReadableDescription: "Enable support for CSS light-dark() defined in CSS Color 5"
defaultValue:
WebKitLegacy:
default: false
default: true
WebKit:
default: false
default: true
WebCore:
default: false
default: true

CSSMarginTrimEnabled:
type: bool
Expand Down

0 comments on commit 42f9569

Please sign in to comment.