mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Remove tentative and contradictory BFC wrapping test
This tests is trying to see if we're taking into account the full margin box width (75px - 50px) when determining whether there is enough space to fit the BFC box. No major browser passes this test, and other tests such as `css/CSS2/floats/new-fc-beside-float-with-margin.html` seem to require that we ignore those margins.
This commit is contained in:
parent
525f609c9b
commit
6c14e740f1
|
|
@ -1,31 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css2/#floats">
|
||||
<link rel="match" href="../../../../../expected/wpt-import/css/CSS2/floats/../reference/ref-filled-green-100px-square.xht">
|
||||
<meta name="assert" content="The BFC roots fit next to the floats, so they shouldn't be moved below.">
|
||||
<style>
|
||||
.wrapper {
|
||||
width: 50px;
|
||||
background: red;
|
||||
}
|
||||
.float {
|
||||
float: left;
|
||||
clear: left;
|
||||
width: 25px;
|
||||
height: 50px;
|
||||
background: green;
|
||||
}
|
||||
.bfc {
|
||||
overflow: hidden;
|
||||
height: 50px;
|
||||
margin-right: -50px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div class="wrapper">
|
||||
<div class="float"></div>
|
||||
<div class="bfc"></div>
|
||||
<div class="float"></div>
|
||||
<div class="bfc" style="width: 75px"></div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user