Navigation Menu

Skip to content

Commit

Permalink
Add sizing of inline replaced boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Dec 10, 2019
1 parent c40583b commit b73eb49
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 5 deletions.
4 changes: 1 addition & 3 deletions components/layout_2020/flow/inline.rs
Expand Up @@ -465,9 +465,7 @@ fn layout_atomic<'box_tree>(

let fragment = match atomic.as_replaced() {
Ok(replaced) => {
// FIXME: implement https://drafts.csswg.org/css2/visudet.html#inline-replaced-width
// and https://drafts.csswg.org/css2/visudet.html#inline-replaced-height
let size = Vec2::zero();
let size = replaced.used_size(ifc.containing_block, &atomic.style);
let fragments = replaced.make_fragments(&atomic.style, size.clone());
let content_rect = Rect { start_corner, size };
BoxFragment {
Expand Down
@@ -0,0 +1,2 @@
[containing-block-008.xht]
expected: FAIL
@@ -0,0 +1,2 @@
[containing-block-009.xht]
expected: FAIL
@@ -0,0 +1,2 @@
[containing-block-010.xht]
expected: FAIL
@@ -0,0 +1,2 @@
[containing-block-027.xht]
expected: FAIL
@@ -0,0 +1,2 @@
[containing-block-028.xht]
expected: FAIL

This file was deleted.

0 comments on commit b73eb49

Please sign in to comment.