mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
First pass at implementing the Flex Layout Algorithm
https://drafts.csswg.org/css-flexbox/#layout-algorithm
This commit is contained in:
parent
080f5bb763
commit
01905923db
6 changed files with 1381 additions and 19 deletions
|
@ -5,9 +5,9 @@
|
|||
use crate::cell::ArcRefCell;
|
||||
use crate::formatting_contexts::IndependentFormattingContext;
|
||||
use crate::positioned::AbsolutelyPositionedBox;
|
||||
use crate::sizing::ContentSizes;
|
||||
|
||||
mod construct;
|
||||
mod geom;
|
||||
mod layout;
|
||||
|
||||
#[derive(Debug, Serialize)]
|
||||
|
@ -20,9 +20,3 @@ pub(crate) enum FlexLevelBox {
|
|||
FlexItem(IndependentFormattingContext),
|
||||
OutOfFlowAbsolutelyPositionedBox(ArcRefCell<AbsolutelyPositionedBox>),
|
||||
}
|
||||
|
||||
impl FlexContainer {
|
||||
pub fn inline_content_sizes(&self) -> ContentSizes {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue