From cbf47abd24995d856f21973156f843a6b0afdb32 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Sat, 22 Mar 2025 01:32:36 +0000 Subject: [PATCH] LibWeb/CSS: Set the initial value of the `appearance` property to "none" --- Libraries/LibWeb/CSS/Properties.json | 2 +- ...upported-properties-and-default-values.txt | 8 +++--- .../css/getComputedStyle-print-all.txt | 2 +- .../css-ui/appearance-initial-value-001.txt | 9 ++++++ .../css-ui/appearance-initial-value-001.html | 28 +++++++++++++++++++ 5 files changed, 43 insertions(+), 6 deletions(-) create mode 100644 Tests/LibWeb/Text/expected/wpt-import/css/css-ui/appearance-initial-value-001.txt create mode 100644 Tests/LibWeb/Text/input/wpt-import/css/css-ui/appearance-initial-value-001.html diff --git a/Libraries/LibWeb/CSS/Properties.json b/Libraries/LibWeb/CSS/Properties.json index f06bb35e5a9..b01b3a8ed98 100644 --- a/Libraries/LibWeb/CSS/Properties.json +++ b/Libraries/LibWeb/CSS/Properties.json @@ -275,7 +275,7 @@ "appearance": { "animation-type": "discrete", "inherited": false, - "initial": "auto", + "initial": "none", "valid-types": [ "appearance" ] diff --git a/Tests/LibWeb/Text/expected/css/CSSStyleProperties-all-supported-properties-and-default-values.txt b/Tests/LibWeb/Text/expected/css/CSSStyleProperties-all-supported-properties-and-default-values.txt index df8950a0055..b61950d319f 100644 --- a/Tests/LibWeb/Text/expected/css/CSSStyleProperties-all-supported-properties-and-default-values.txt +++ b/Tests/LibWeb/Text/expected/css/CSSStyleProperties-all-supported-properties-and-default-values.txt @@ -36,9 +36,9 @@ All supported properties and their default values exposed from CSSStylePropertie 'WebkitAnimationTimingFunction': 'ease' 'webkitAnimationTimingFunction': 'ease' '-webkit-animation-timing-function': 'ease' -'WebkitAppearance': 'auto' -'webkitAppearance': 'auto' -'-webkit-appearance': 'auto' +'WebkitAppearance': 'none' +'webkitAppearance': 'none' +'-webkit-appearance': 'none' 'WebkitBackgroundClip': 'border-box' 'webkitBackgroundClip': 'border-box' '-webkit-background-clip': 'border-box' @@ -154,7 +154,7 @@ All supported properties and their default values exposed from CSSStylePropertie 'animation-play-state': 'running' 'animationTimingFunction': 'ease' 'animation-timing-function': 'ease' -'appearance': 'auto' +'appearance': 'none' 'aspectRatio': 'auto' 'aspect-ratio': 'auto' 'backdropFilter': 'none' diff --git a/Tests/LibWeb/Text/expected/css/getComputedStyle-print-all.txt b/Tests/LibWeb/Text/expected/css/getComputedStyle-print-all.txt index f31b7430c0a..224b0539498 100644 --- a/Tests/LibWeb/Text/expected/css/getComputedStyle-print-all.txt +++ b/Tests/LibWeb/Text/expected/css/getComputedStyle-print-all.txt @@ -71,7 +71,7 @@ animation-iteration-count: 1 animation-name: none animation-play-state: running animation-timing-function: ease -appearance: auto +appearance: none aspect-ratio: auto backdrop-filter: none background-attachment: scroll diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-ui/appearance-initial-value-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-ui/appearance-initial-value-001.txt new file mode 100644 index 00000000000..761916f3056 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-ui/appearance-initial-value-001.txt @@ -0,0 +1,9 @@ +Harness status: OK + +Found 4 tests + +4 Pass +Pass support for appearance +Pass initial value for appearance +Pass support for -webkit-appearance +Pass initial value for -webkit-appearance \ No newline at end of file diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-ui/appearance-initial-value-001.html b/Tests/LibWeb/Text/input/wpt-import/css/css-ui/appearance-initial-value-001.html new file mode 100644 index 00000000000..7a76ee5bb1f --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/css-ui/appearance-initial-value-001.html @@ -0,0 +1,28 @@ + + +CSS Basic User Interface Test: appearance and -webkit-appearance + + + + + + +
+
+
+