mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add sizing of inline replaced boxes
This commit is contained in:
parent
c40583b644
commit
b73eb49a58
7 changed files with 11 additions and 5 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
|
@ -1,2 +0,0 @@
|
|||
[display-change-001.xht]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue