blob: 8c7d234db5c913eab3ea14649d81a1714f3b1028 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<!DOCTYPE html>
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m">
<link rel="help" href="https://html.spec.whatwg.org/#range-state-(type=range)">
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow">
<title>Test that painting of input[type=range] does not happen outside of its bounds</title>
<meta charset="utf-8">
<link rel="match" href="range-input-painting-ref.html">
<style>
#container {
position: relative;
}
#cover {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: red;
}
@supports (writing-mode: vertical-lr) and (direction: rtl) {
#cover {
background-color: Canvas;
}
}
input {
appearance: none;
writing-mode: vertical-lr;
direction: rtl;
}
</style>
<p>The range input below should be fully covered.</p>
<div id="container">
<input type="range">
<div id="cover"></div>
</div>
|