mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Auto merge of #5583 - pcwalton:float-ceiling-top-margin-redux, r=mbrubeck
As the float ceiling is relative to the border box, not the margin box, of the parent flow, top margin must not be included. This exposed a pre-existing bug whereby margins are discarded if a block contains only floats and no content, affecting the tests `float_intrinsic_height.html` and `margins_inside_floats_a.html`. As a workaround, some invisible content has been added to the bodies of both tests. r? @mbrubeck
This commit is contained in:
commit
1c884dc76b
7 changed files with 77 additions and 8 deletions
|
@ -1994,7 +1994,8 @@ pub struct ISizeConstraintSolution {
|
|||
}
|
||||
|
||||
impl ISizeConstraintSolution {
|
||||
pub fn new(inline_size: Au, margin_inline_start: Au, margin_inline_end: Au) -> ISizeConstraintSolution {
|
||||
pub fn new(inline_size: Au, margin_inline_start: Au, margin_inline_end: Au)
|
||||
-> ISizeConstraintSolution {
|
||||
ISizeConstraintSolution {
|
||||
inline_start: Au(0),
|
||||
inline_end: Au(0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue