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

Unified Diff: LayoutTests/fast/forms/select/listbox-with-display-none-option.html

Issue 189543012: Update <select> when any of its <option> children has "display: none" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update Test Expectations Created 6 years, 8 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
Index: LayoutTests/fast/forms/select/listbox-with-display-none-option.html
diff --git a/LayoutTests/fast/forms/select/listbox-with-display-none-option.html b/LayoutTests/fast/forms/select/listbox-with-display-none-option.html
new file mode 100644
index 0000000000000000000000000000000000000000..2c9994a3199f80f121edd4d734a8d30f2568c79c
--- /dev/null
+++ b/LayoutTests/fast/forms/select/listbox-with-display-none-option.html
@@ -0,0 +1,89 @@
+<!doctype html>
+<html>
+<head>
+</head>
+<body>
+<p>
+ The select list box should not display items (options and optgroups) with style "display: none".
+</p>
+<select size="7">
+ <option>One</option>
+ <option>Two</option>
+ <option>Three</option>
+ <option style="display: none">Four</option>
+ <option>Five</option>
+ <option id='56' style="display: none">Six</option>
+ <option>Seven</option>
+</select>
+<select size="7">
+ <option>One</option>
+ <option>Two</option>
+ <option>Three</option>
+ <optgroup label="***45***">
+ <option style="display: none">Four</option>
+ <option>Five</option>
+ </optgroup>
+ <option style="display: none">Six</option>
+ <option>Seven</option>
+</select>
+<select size="7">
+ <option>One</option>
+ <option>Two</option>
+ <option id="13">Three</option>
+ <optgroup label="***45***">
+ <option>Four</option>
+ <option id="15">Five</option>
+ </optgroup>
+ <option>Six</option>
+ <option>Seven</option>
+</select>
+<select size="8">
+ <option>One</option>
+ <option>Two</option>
+ <option>Three</option>
+ <optgroup id="24" label="**456**" style="display: none">
+ <option>Four</option>
+ <option>Five</option>
+ <option>Six</option>
+ </optgroup>
+ <option>Seven</option>
+</select>
+<select size="8">
+ <option>One</option>
+ <option>Two</option>
+ <option>Three</option>
+ <optgroup id="34" label="**456**">
+ <option>Four</option>
+ <option>Five</option>
+ <option>Six</option>
+ </optgroup>
+ <option>Seven</option>
+</select>
+<select size="8">
+ <option>One</option>
+ <option>Two</option>
+ <option>Three</option>
+ <optgroup id="44" label="**456**" style="display: none">
+ <option>Four</option>
+ <option>Five</option>
+ <option>Six</option>
+ </optgroup>
+ <option>Seven</option>
+</select>
+
+<script>
+var elem = document.getElementById('13');
+elem.style.display = 'none';
+elem = document.getElementById('15');
+elem.style.display = 'none';
+elem = document.getElementById('34');
+elem.style.display = 'none';
+elem = document.getElementById('44');
+elem.style.display = 'block';
+elem = document.getElementById('56');
+elem.style.display = 'block';
+</script>
+
+</body>
+</html>
+
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/forms/select/listbox-with-display-none-option-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698