mirror of
https://github.com/servo/servo
synced 2026-05-08 16:12:15 +02:00
when estimating the inline size of block formatting contexts. The speculated inline-size of the preceding floats was forced to zero at the wrong time if the float was itself cleared, causing it to overwrite the speculated value. Shuffling the code around a bit fixes the problem.
29 lines
445 B
HTML
29 lines
445 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!--
|
|
Tests that block formatting context inline-size speculation works when the floats that impact
|
|
the block formatting context are cleared.
|
|
-->
|
|
<style>
|
|
#a {
|
|
background: silver;
|
|
height: 150px;
|
|
width: 150px;
|
|
float: right;
|
|
clear: right;
|
|
}
|
|
#b {
|
|
background: goldenrod;
|
|
height: 300px;
|
|
overflow: hidden;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id=a></div>
|
|
<div id=b></div>
|
|
</body>
|
|
</html>
|
|
|