Update web-platform-tests to revision 593d7eb21e1c3ac161aa51cce914056eb9182962

This commit is contained in:
WPT Sync Bot 2020-07-24 08:20:09 +00:00
parent 453aafeea6
commit bd0b0ea24a
92 changed files with 1060 additions and 159 deletions

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Reference: appearance: auto on non-widget input elements</title>
<input type="hidden" value="abc">
<input type="image" value="def">
<input type="file">

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Basic User Interface Test: appearance: auto on non-widget input elements</title>
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#appearance-switching">
<meta name="assert" content="The default widget type for these elements is none.">
<link rel="match" href="appearance-auto-input-non-widget-001-ref.html">
<style>
input { appearance: auto; }
</style>
<input type="hidden" value="abc">
<input type="image" value="def">
<input type="file">

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Reference: appearance: button</title>
<style>
#container { width: 500px; }
#container > :not(a) { appearance: auto; }
</style>
<div id="container">
<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 multiple><option>select-multiple</option></select>
<meter value=0.5></meter>
<progress value=0.5></progress>
</div>

View file

@ -0,0 +1,25 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Basic User Interface Test: appearance: button</title>
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#appearance-switching">
<meta name="assert" content="button is treated as auto on input, textarea, list box select, meter, and progress elements.">
<link rel="match" href="appearance-button-001-ref.html">
<style>
#container { width: 500px; }
#container > * { appearance: none; appearance: button; }
</style>
<div id="container">
<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 multiple><option>select-multiple</option></select>
<meter value=0.5></meter>
<progress value=0.5></progress>
</div>

View file

@ -0,0 +1,4 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Reference: appearance: button</title>
<select><option>select</option></select>

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Basic User Interface Test: appearance: button</title>
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#appearance-switching">
<meta name="assert" content="Drop-down select elements with appearance: button are rendered differently from appearance: auto.">
<link rel="mismatch" href="appearance-button-002.tentative-ref.html">
<style>
select { appearance: none; appearance: button; }
</style>
<!--
Test marked as tentative since although css-ui says "The element is rendered
with the look and feel of a push button, similar to the appearance: auto
rendering of the [HTML] button element.", there is no requirement that the
look and feel of a push button is different from that of a drop-down select.
-->
<select><option>select</option></select>

View file

@ -8,6 +8,18 @@
#container { width: 500px; }
#container > #drop-down-select { appearance: none; appearance: menulist-button; }
</style>
<!--
Test marked as tentative since although css-ui says:
For drop-down box select elements, the element is rendered as a drop-down
box, including a "drop-down button", but not necessarily using a native
control of the host operating system. For such elements, CSS properties
such as color, background-color, and border (that can be disregarded for
auto) should not be disregarded.
there is no requirement that this rendering is any different from the
automatic widget appearance of a drop-down select.
-->
<div id="container">
<a>a</a>
<button>button</button>

View file

@ -1,4 +1,4 @@
<!doctype html>
<title>CSS Test Reference</title>
<progress style="appearance:auto">
<progress style="appearance:none">
<progress style="appearance:auto" value="0.5">
<progress style="appearance:none" value="0.5">

View file

@ -7,8 +7,8 @@
#progress1 { appearance: none }
#progress2 { appearance: auto }
</style>
<progress id="progress1">
<progress id="progress2">
<progress id="progress1" value="0.5">
<progress id="progress2" value="0.5">
<script>
document.body.offsetTop;
progress1.style.appearance = "auto";

View file

@ -0,0 +1,29 @@
<!-- DO NOT EDIT THIS FILE.
Edit the appearance-* file instead and then run:
./tools/appearance-build-webkit-reftests.py
-->
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Basic User Interface Test: -webkit-appearance: button</title>
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#appearance-switching">
<meta name="assert" content="button is treated as auto on input, textarea, list box select, meter, and progress elements.">
<link rel="match" href="appearance-button-001-ref.html">
<style>
#container { width: 500px; }
#container > * { -webkit-appearance: none; -webkit-appearance: button; }
</style>
<div id="container">
<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 multiple><option>select-multiple</option></select>
<meter value=0.5></meter>
<progress value=0.5></progress>
</div>

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Basic User Interface Test: -webkit-appearance: button</title>
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#appearance-switching">
<meta name="assert" content="Drop-down select elements with appearance: button are rendered differently from appearance: auto.">
<link rel="mismatch" href="appearance-button-002.tentative-ref.html">
<style>
select { -webkit-appearance: none; -webkit-appearance: button; }
</style>
<!--
Test marked as tentative since although css-ui says "The element is rendered
with the look and feel of a push button, similar to the appearance: auto
rendering of the [HTML] button element.", there is no requirement that the
look and feel of a push button is different from that of a drop-down select.
-->
<select><option>select</option></select>

View file

@ -12,6 +12,18 @@ Edit the appearance-* file instead and then run:
#container { width: 500px; }
#container > #drop-down-select { -webkit-appearance: none; -webkit-appearance: menulist-button; }
</style>
<!--
Test marked as tentative since although css-ui says:
For drop-down box select elements, the element is rendered as a drop-down
box, including a "drop-down button", but not necessarily using a native
control of the host operating system. For such elements, CSS properties
such as color, background-color, and border (that can be disregarded for
auto) should not be disregarded.
there is no requirement that this rendering is any different from the
automatic widget appearance of a drop-down select.
-->
<div id="container">
<a>a</a>
<button>button</button>