mirror of
https://github.com/servo/servo
synced 2026-05-08 16:12:15 +02:00
the inline sizes of block formatting contexts are likely to be. Usually, Web developers set this property on block formatting contexts in order to avoid running into floats, and we can use this as a speculation hint. Fixes the width of the search box on the Google SERPs.
28 lines
344 B
HTML
28 lines
344 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
html, body {
|
|
margin: 0;
|
|
}
|
|
section {
|
|
width: 300px;
|
|
}
|
|
div {
|
|
position: absolute;
|
|
height: 100px;
|
|
top: 0;
|
|
}
|
|
#a {
|
|
float: right;
|
|
width: 100px;
|
|
left: 200px;
|
|
background: gold;
|
|
}
|
|
#b {
|
|
overflow: hidden;
|
|
width: 200px;
|
|
background: blue;
|
|
}
|
|
</style>
|
|
<section><div id=a></div><div id=b>
|
|
|