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/input-range-zero-inline-size.html - WPT Dashboard Interop Dashboard
 
 
<!DOCTYPE html>
<html>
<head>
    <title>Setting inline-size to zero on input[type=range] should be honored.</title>
    <link rel="match" href="input-range-zero-inline-size-ref.html">
</head>
<body>
    <style>
        div {
            display: flex;
            background-color: red;
            border-inline-start: 1px solid green;
        }
        .horizontal {
            background-color: transparent;
        }
        input[type=range] {
            visibility: hidden;
            inline-size: 0;
            margin: 0;
        }
    </style>
    <p>Test passes if you see no red:</p>
    <div class="horizontal"><span style="display: inline-flex; background-color: red;"><input type="range"></span></div>
    <div style="writing-mode: vertical-lr;"><input type="range"></div>
    <div style="writing-mode: vertical-rl;"><input type="range"></div>
    <div style="writing-mode: sideways-lr;"><input type="range"></div>
    <div style="writing-mode: sideways-rl;"><input type="range"></div>
</body>
</html>