Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: LayoutTests/fast/forms/select/styling-option-checked.html

Issue 450623002: Styling option should not override option:checked UA style (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added to isSkippableComponentForInvalidation Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/forms/select/styling-option-checked-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/forms/select/styling-option-checked-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698