mirror of
https://github.com/servo/servo
synced 2026-05-09 00:22:16 +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.
25 lines
295 B
HTML
25 lines
295 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
html, body {
|
|
margin: 0;
|
|
}
|
|
section {
|
|
width: 300px;
|
|
}
|
|
div {
|
|
height: 100px;
|
|
}
|
|
#a {
|
|
float: right;
|
|
width: 100px;
|
|
background: gold;
|
|
}
|
|
#b {
|
|
overflow: hidden;
|
|
max-width: 200px;
|
|
background: blue;
|
|
}
|
|
</style>
|
|
<section><div id=a></div><div id=b>
|
|
|