Skip to content

Commit

Permalink
Update test for menulist-button
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan committed May 21, 2019
1 parent 16263c2 commit 554e1c6
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 6 deletions.
6 changes: 3 additions & 3 deletions css/css-ui/appearance-menulist-button-001.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<meta charset="utf-8">
<title>CSS Basic User Interface Test: appearance: menulist-button</title>
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#appearance-switching">
<meta name="assert" content="menulist-button is an alias to auto.">
<meta name="assert" content="menulist-button is an alias to auto except on drop-down select.">
<link rel="match" href="appearance-auto-ref.html">
<style>
#container { width: 500px; }
#container > * { appearance: none; appearance: menulist-button; }
#container > *:not(#drop-down-select) { appearance: none; appearance: menulist-button; }
</style>
<div id="container">
<a>a</a>
Expand All @@ -21,7 +21,7 @@
<input type="checkbox">
<input type="radio">
<input type="color">
<select><option>select</option></select>
<select id="drop-down-select"><option>select</option></select>
<select multiple><option>select-multiple</option></select>
<meter value=0.5></meter>
<progress value=0.5></progress>
Expand Down
28 changes: 28 additions & 0 deletions css/css-ui/appearance-menulist-button-002.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Basic User Interface Test: appearance: menulist-button on drop-down select</title>
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#appearance-switching">
<meta name="assert" content="menulist-button is NOT an alias to auto on drop-down select.">
<link rel="mismatch" href="appearance-auto-ref.html">
<style>
#container { width: 500px; }
#container > #drop-down-select { -webkit-appearance: none; -webkit-appearance: menulist-button; }
</style>
<div id="container">
<a>a</a>
<button>button</button>
<input type="text" value="input-text">
<input type="search" value="input-search">
<textarea>textarea</textarea>
<input type="button" value="input-button">
<input type="submit" value="input-submit">
<input type="reset" value="input-reset">
<input type="range">
<input type="checkbox">
<input type="radio">
<input type="color">
<select id="drop-down-select"><option>select</option></select>
<select multiple><option>select-multiple</option></select>
<meter value=0.5></meter>
<progress value=0.5></progress>
</div>
6 changes: 3 additions & 3 deletions css/css-ui/webkit-appearance-menulist-button-001.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<meta charset="utf-8">
<title>CSS Basic User Interface Test: -webkit-appearance: menulist-button</title>
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#appearance-switching">
<meta name="assert" content="menulist-button is an alias to auto.">
<meta name="assert" content="menulist-button is an alias to auto except on drop-down select.">
<link rel="match" href="appearance-auto-ref.html">
<style>
#container { width: 500px; }
#container > * { -webkit-appearance: none; -webkit-appearance: menulist-button; }
#container > *:not(#drop-down-select) { -webkit-appearance: none; -webkit-appearance: menulist-button; }
</style>
<div id="container">
<a>a</a>
Expand All @@ -25,7 +25,7 @@
<input type="checkbox">
<input type="radio">
<input type="color">
<select><option>select</option></select>
<select id="drop-down-select"><option>select</option></select>
<select multiple><option>select-multiple</option></select>
<meter value=0.5></meter>
<progress value=0.5></progress>
Expand Down
32 changes: 32 additions & 0 deletions css/css-ui/webkit-appearance-menulist-button-002.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!-- DO NOT EDIT THIS FILE.
Edit the appearance-* file instead and then run:
python3 appearance-build-webkit-reftests.py
-->
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Basic User Interface Test: -webkit-appearance: menulist-button on drop-down select</title>
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#appearance-switching">
<meta name="assert" content="menulist-button is NOT an alias to auto on drop-down select.">
<link rel="mismatch" href="appearance-auto-ref.html">
<style>
#container { width: 500px; }
#container > #drop-down-select { -webkit--webkit-appearance: none; -webkit--webkit-appearance: menulist-button; }
</style>
<div id="container">
<a>a</a>
<button>button</button>
<input type="text" value="input-text">
<input type="search" value="input-search">
<textarea>textarea</textarea>
<input type="button" value="input-button">
<input type="submit" value="input-submit">
<input type="reset" value="input-reset">
<input type="range">
<input type="checkbox">
<input type="radio">
<input type="color">
<select id="drop-down-select"><option>select</option></select>
<select multiple><option>select-multiple</option></select>
<meter value=0.5></meter>
<progress value=0.5></progress>
</div>

0 comments on commit 554e1c6

Please sign in to comment.