Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-writing-modes/forms/range-input-vertical-ltr-painting.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<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) {
#cover {
background-color: Canvas;
}
}
input {
appearance: none;
writing-mode: vertical-lr;
}
</style>
<p>The range input below should be fully covered.</p>
<div id="container">
<input type="range">
<div id="cover"></div>
</div>