mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision b'66a2552e58afc4f50e87b2306839664c1447e265'
This commit is contained in:
parent
d7cade7a66
commit
702d7621cf
183 changed files with 6761 additions and 938 deletions
|
@ -0,0 +1,20 @@
|
|||
<meta charset="utf-8">
|
||||
<title>OPTION's label attribute in SELECT -- Adding a label (quirks)</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>
|
Loading…
Add table
Add a link
Reference in a new issue