mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Update web-platform-tests to revision a46616a5b18e83587ddbbed756c7b96cbb4b015d
This commit is contained in:
parent
3f07cfec7c
commit
578498ba24
4001 changed files with 159517 additions and 30260 deletions
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>option element with br child</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#concept-option-label">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-option-text">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-select-element-2">
|
||||
|
||||
<p>This test passes if the option element displays three options:</p>
|
||||
|
||||
<pre>a
|
||||
b
|
||||
ab</pre>
|
||||
|
||||
<p>Importantly the third option must not be split across two lines.</p>
|
||||
|
||||
<select multiple>
|
||||
<option>a</option>
|
||||
<option>b</option>
|
||||
<option>ab</option>
|
||||
</select>
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>option element with br child</title>
|
||||
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#concept-option-label">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-option-text">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-select-element-2">
|
||||
|
||||
<link rel="match" href="option-with-br-ref.html">
|
||||
|
||||
<p>This test passes if the option element displays three options:</p>
|
||||
|
||||
<pre>a
|
||||
b
|
||||
ab</pre>
|
||||
|
||||
<p>Importantly the third option must not be split across two lines.</p>
|
||||
|
||||
<select multiple>
|
||||
<option>a</option>
|
||||
<option>b</option>
|
||||
<option id="manipulate-me"></option>
|
||||
</select>
|
||||
|
||||
<script>
|
||||
"use strict";
|
||||
const option = document.querySelector("#manipulate-me");
|
||||
|
||||
option.appendChild(document.createTextNode("a"));
|
||||
option.appendChild(document.createElement("br"));
|
||||
option.appendChild(document.createTextNode("b"));
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue