summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/replaced-elements/the-option-element/option-with-br-ref.html
blob: 954840f389b00529b3b977aaf23884c59b37c88b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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>