Skip to content

Commit

Permalink
web/core: Add basic float support
Browse files Browse the repository at this point in the history
Note that the "clear" property is not yet supported.
There are also some obvious differences in rendering
compared to firefox, but those are due to a lack of
understanding of the spec on my part, I'll come back
to them later once i understand why what I'm doing
is not right.
  • Loading branch information
simonwuelker committed Dec 7, 2023
1 parent 65e5e2f commit c1cb6b2
Show file tree
Hide file tree
Showing 6 changed files with 461 additions and 249 deletions.
2 changes: 1 addition & 1 deletion crates/web/core/src/css/layout/box_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl BoxTree {
viewport,
};

let mut root_formatting_context = BlockFormattingContext::default();
let mut root_formatting_context = BlockFormattingContext::new(initial_containing_block);
let mut state = BlockFlowState::new(
initial_containing_block,
length_resolution_context,
Expand Down
Loading

0 comments on commit c1cb6b2

Please sign in to comment.