1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

Base: Add test page for floating boxes with overflow=hidden

This commit is contained in:
Timothy Flynn 2021-03-30 16:04:15 -04:00 committed by Andreas Kling
parent c21eafbf38
commit e0f0aa7ce0
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,27 @@
<style>
body {
width: 780px;
text-align: center
}
.box {
height: 100px;
width: 300px;
background: red;
}
#top {
overflow: hidden;
}
#bottom {
border: 1px solid black;
}
</style>
<body>
<div id="top">
<div id="top-left" class="box" style="float: left"></div>
<div id="top-right" class="box" style="float: right"></div>
</div>
<div id="bottom">
<!-- Due to the overflow property of the top div, this div should be laid beneath the top, rather than inline -->
<div id="text">foobar</div>
</div>
</body>