gecko-dev/layout/reftests/floats/1260031-1.html
Xidorn Quan 4e5bd79656 Bug 1260031 - Not force break before a block when calculating intrinsic width if the current line is empty and the block cannot intersect floats. r=dbaron
MozReview-Commit-ID: 9rNUDK5t5jg

--HG--
extra : rebase_source : 2a852efe3f9801884e558f22ae7d9550fae87836
2016-08-23 09:29:45 +10:00

37 lines
671 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bug 1260031 - Intrinsic width with float</title>
<style>
#wrapper {
background: red;
width: -moz-fit-content;
width: fit-content;
}
#left {
float: left;
width: 50px;
height: 50px;
background: green;
}
#right {
width: 50px;
height: 50px;
background: blue;
}
</style>
</head>
<body>
<div id="test">
<div id="wrapper">
<div id="left"></div>
<div id="right"></div>
</div>
</div>
<script>
document.getElementById("right").style = location.search.slice(1);
</script>
</body>
</html>