mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add overflow to child layer size
When creating child layers it is important to consider overflow when determining the size of the layer. This also means that overflow should not be too large, so also shrink block width down to the size of their contained fragment. This means that a block that has been explicitly sized to width:100px should be 100 pixels wide instead of the width of its containing block.
This commit is contained in:
parent
897e39dcf3
commit
22ea9a634c
4 changed files with 38 additions and 12 deletions
6
src/test/ref/position_fixed_overflow_b.html
Normal file
6
src/test/ref/position_fixed_overflow_b.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="top: 5px; left: 5px; height: 100px; width: 100px; position: absolute; background: black;"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue