Add sizing of inline replaced boxes

This commit is contained in:
Simon Sapin 2019-12-07 16:24:09 +01:00
parent c40583b644
commit b73eb49a58
7 changed files with 11 additions and 5 deletions

View file

@ -465,9 +465,7 @@ fn layout_atomic<'box_tree>(
let fragment = match atomic.as_replaced() { let fragment = match atomic.as_replaced() {
Ok(replaced) => { Ok(replaced) => {
// FIXME: implement https://drafts.csswg.org/css2/visudet.html#inline-replaced-width let size = replaced.used_size(ifc.containing_block, &atomic.style);
// and https://drafts.csswg.org/css2/visudet.html#inline-replaced-height
let size = Vec2::zero();
let fragments = replaced.make_fragments(&atomic.style, size.clone()); let fragments = replaced.make_fragments(&atomic.style, size.clone());
let content_rect = Rect { start_corner, size }; let content_rect = Rect { start_corner, size };
BoxFragment { BoxFragment {

View file

@ -0,0 +1,2 @@
[containing-block-008.xht]
expected: FAIL

View file

@ -0,0 +1,2 @@
[containing-block-009.xht]
expected: FAIL

View file

@ -0,0 +1,2 @@
[containing-block-010.xht]
expected: FAIL

View file

@ -0,0 +1,2 @@
[containing-block-027.xht]
expected: FAIL

View file

@ -0,0 +1,2 @@
[containing-block-028.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[display-change-001.xht]
expected: FAIL