Index: LayoutTests/fast/forms/select/styling-option-checked.html |
diff --git a/LayoutTests/fast/forms/select/styling-option-checked.html b/LayoutTests/fast/forms/select/styling-option-checked.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..165645470bc1ad2e4a2d7058070de8dddd3acd1f |
--- /dev/null |
+++ b/LayoutTests/fast/forms/select/styling-option-checked.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE html> |
+<style> |
+option { |
+ /* background-color and color are overridden for checked options */ |
+ background-color: lightgreen; |
+ color: red; |
+ /* properties other than background-color and color apply to checked options */ |
+ padding-left: 20px; |
+} |
+option:checked { |
+ /* properties other than background-color and color apply normally */ |
+ text-decoration: underline; |
+} |
+</style> |
+<select multiple autofocus> |
+ <option>foo</option> |
+ <option selected>bar</option> |
+</select> |