Skip to content

Commit 4888812

Browse files
Loirooriolservo-wpt-sync
authored andcommitted
layout: Handle <select> as a widget
For example, it will now be atomic with `display: inline`, so its block-level contents won't be able to split it. Signed-off-by: Oriol Brufau <[email protected]>
1 parent 2c92fa5 commit 4888812

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!DOCTYPE html>
2+
<title>Test Reference</title>
3+
<link rel="author" title="Oriol Brufau" href="obrufau:[email protected]">
4+
5+
<select style="margin-left: 100px">
6+
<option>option</option>
7+
</select>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<title>&lt;select&gt; with display:inline</title>
3+
<link rel="author" title="Oriol Brufau" href="obrufau:[email protected]">
4+
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-select-element-2">
5+
<link rel="help" href="https://github.com/servo/servo/issues/39927">
6+
<link rel="match" href="select-display-inline-ref.html">
7+
<meta name="assert" content="
8+
A <select> is a widget, so it's atomic when it has display:inline.
9+
In particular, this implies that it's transformable.
10+
">
11+
12+
<select style="display: inline; transform: translateX(100px)">
13+
<option>option</option>
14+
</select>

0 commit comments

Comments
 (0)