Update web-platform-tests to revision 30a08266e1951b16ab2587068de64041095bbc2f

This commit is contained in:
WPT Sync Bot 2020-04-08 08:19:32 +00:00
parent 7b5ec99d25
commit 19a2b8047d
185 changed files with 3858 additions and 329 deletions

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>OPTION's label attribute in SELECT -- Adding a label</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-select-element-2">
<link rel="match" href="option-label-ref.html">
<meta name="assert" content="An option element is expected to be rendered by displaying the element's label.">
<select>
<option>Element Text</option>
</select>
<br/>
<select size="4">
<option>Element Text</option>
</select>
<script>
let options = document.querySelectorAll("option");
options[0].getBoundingClientRect(); // force layout.
for (let option of options) {
option.setAttribute("label", "Label Text");
}
</script>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>OPTION's label attribute in SELECT -- Adding a label</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-select-element-2">
<link rel="match" href="option-label-ref.html">
<meta name="assert" content="An option element is expected to be rendered by displaying the element's label.">
<select>
<option label="Element Text">Label Text</option>
</select>
<br/>
<select size="4">
<option label="Element Text">Label Text</option>
</select>
<script>
let options = document.querySelectorAll("option");
options[0].getBoundingClientRect(); // force layout.
for (let option of options) {
option.setAttribute("label", "");
}
</script>

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>OPTION's label attribute in SELECT -- Empty label uses Element text</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-select-element-2">
<link rel="match" href="option-label-ref.html">
<meta name="assert" content="An option element is expected to be rendered by displaying the element's label.">
<select>
<option label>Label Text</option>
</select>
<br/>
<select size="4">
<option label>Label Text</option>
</select>

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>OPTION's label attribute in SELECT - Prefers label over element text</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-select-element-2">
<link rel="match" href="option-label-ref.html">
<meta name="assert" content="An option element is expected to be rendered by displaying the element's label.">
<select>
<option label="Label Text">Element Text</option>
</select>
<br/>
<select size="4">
<option label="Label Text">Element Text</option>
</select>

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>OPTION's label attribute in SELECT (reference)</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-select-element-2">
<select>
<option>Label Text</option>
</select>
<br/>
<select size="4">
<option>Label Text</option>
</select>

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>OPTION's label attribute in SELECT -- Only a label</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-select-element-2">
<link rel="match" href="option-label-ref.html">
<meta name="assert" content="An option element is expected to be rendered by displaying the element's label.">
<select>
<option label="Label Text"></option>
</select>
<br/>
<select size="4">
<option label="Label Text"></option>
</select>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>OPTION's label attribute in SELECT -- Removing the label</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-select-element-2">
<link rel="match" href="option-label-ref.html">
<meta name="assert" content="An option element is expected to be rendered by displaying the element's label.">
<select>
<option label="Bad Label Text">Label Text</option>
</select>
<br/>
<select size="4">
<option label="Bad Label Text">Label Text</option>
</select>
<script>
let options = document.querySelectorAll("option");
options[0].getBoundingClientRect(); // force layout.
for (let option of options) {
option.removeAttribute("label");
}
</script>