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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-appearance-minimum-font.html

Issue 2359663003: SELECT popup should respect to the minimum font size setting (Closed)
Patch Set: Created 4 years, 3 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: third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-appearance-minimum-font.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-appearance.html b/third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-appearance-minimum-font.html
similarity index 62%
copy from third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-appearance.html
copy to third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-appearance-minimum-font.html
index cc3ee27e7478e0d967d4da30fed75197a280fd57..7654c6b0bd4233a98ef0192f8c9f590e9e360d42 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-appearance.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-appearance-minimum-font.html
@@ -8,15 +8,24 @@ window.enablePixelTesting = true;
<script src="../resources/picker-common.js"></script>
</head>
<body>
+<style>
+select, span {
+ font-size: 6px;
+}
+</style>
<select id="menu">
<option>foo</option>
- <option selected>bar</option>
- <option>qux</option>
+ <optgroup label="group" id="group">
+ <option selected>bar</option>
+ </optgroup>
<option>baz</option>
</select>
+<span>The font size in the popup content should be 12px, which is the same as this text.</span>
<p id="description" style="opacity: 0"></p>
<div id="console" style="opacity: 0"></div>
<script>
+if (window.testRunner)
+ testRunner.overridePreference('WebKitMinimumFontSize', '12');
var menu = document.getElementById('menu');
openPicker(menu, finishJSTest, function () {
testFailed('picker didn\'t open')

Powered by Google App Engine
This is Rietveld 408576698