mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Flex elements in a row flex container
Iterate over the items, create lines from them, resolve flex lengths against them, set their inline size and margin lengths, and align them according to 'justify-content', 'align-content' and 'align-self'.
This commit is contained in:
parent
bc8d22a5e7
commit
a70d2bbed8
2 changed files with 214 additions and 68 deletions
|
@ -1159,7 +1159,7 @@ impl BlockFlow {
|
|||
}
|
||||
}
|
||||
|
||||
fn explicit_block_size(&self, containing_block_size: Option<Au>) -> Option<Au> {
|
||||
pub fn explicit_block_size(&self, containing_block_size: Option<Au>) -> Option<Au> {
|
||||
let content_block_size = self.fragment.style().content_block_size();
|
||||
|
||||
match (content_block_size, containing_block_size) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue