mirror of
https://github.com/servo/servo
synced 2026-05-11 01:22:19 +02:00
31 lines
894 B
HTML
31 lines
894 B
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>CSS Basic User Interface Test: resizing constraints</title>
|
|
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net">
|
|
<link rel="help" href="https://drafts.csswg.org/css-ui-3/#resize">
|
|
<meta name="flags" content="interact">
|
|
<meta name="assert" content="UAs must not place constrains on resizing that would prevent an element from becoming smaller than its original size.">
|
|
<style>
|
|
#test {
|
|
position: absolute;
|
|
background: orange;
|
|
height: 100px;
|
|
width: 100px;
|
|
overflow: auto;
|
|
resize: both;
|
|
}
|
|
#ref {
|
|
position: absolute;
|
|
background: green;
|
|
height: 100px;
|
|
width: 100px;
|
|
}
|
|
</style>
|
|
|
|
<p>The test passes is you can resize the orange box to be smaller than its initial size.
|
|
For reference there is an unresizable green box beneath it.
|
|
If you can uncover it, the test passes.</p>
|
|
|
|
<div id=ref></div>
|
|
<div id=test></div>
|