Truly independent web browser
LibWeb: Gray out disabled group labels in list boxes
sideshowbarker82362689e414
diff --git a/Libraries/LibWeb/CSS/Default.css b/Libraries/LibWeb/CSS/Default.cssindex 3b00d128f21..94e10fb4053 100644--- a/Libraries/LibWeb/CSS/Default.css+++ b/Libraries/LibWeb/CSS/Default.css@@ -189,7 +189,7 @@ select:is([multiple], [size]:not([size="0"], [size="1"])) {& optgroup > option {padding-inline-start: 1.25em;}- & option:disabled {+ & option:disabled, & optgroup:disabled {color: GrayText;}& option:checked {diff --git a/Tests/LibWeb/Ref/expected/select-list-box-disabled-group-label.html b/Tests/LibWeb/Ref/expected/select-list-box-disabled-group-label.htmlnew file mode 100644index 00000000000..cf5868a525b--- /dev/null+++ b/Tests/LibWeb/Ref/expected/select-list-box-disabled-group-label.html@@ -0,0 +1,2 @@+<!doctype html>+<select multiple><optgroup label="Group"></optgroup></select>diff --git a/Tests/LibWeb/Ref/input/select-list-box-disabled-group-label.html b/Tests/LibWeb/Ref/input/select-list-box-disabled-group-label.htmlnew file mode 100644index 00000000000..37cfe0127e5--- /dev/null+++ b/Tests/LibWeb/Ref/input/select-list-box-disabled-group-label.html@@ -0,0 +1,3 @@+<!doctype html>+<link rel="mismatch" href="../expected/select-list-box-disabled-group-label.html">+<select multiple><optgroup label="Group" disabled></optgroup></select>