mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Implemented display: inline-flex
This commit is contained in:
parent
987b640c54
commit
e31ee04dad
9 changed files with 28 additions and 26 deletions
|
@ -18,10 +18,11 @@
|
|||
values = """inline block inline-block
|
||||
table inline-table table-row-group table-header-group table-footer-group
|
||||
table-row table-column-group table-column table-cell table-caption
|
||||
list-item flex none
|
||||
list-item flex inline-flex
|
||||
none
|
||||
""".split()
|
||||
if product == "gecko":
|
||||
values += """inline-flex grid inline-grid ruby ruby-base ruby-base-container
|
||||
values += """grid inline-grid ruby ruby-base ruby-base-container
|
||||
ruby-text ruby-text-container contents flow-root -webkit-box
|
||||
-webkit-inline-box -moz-box -moz-inline-box -moz-grid -moz-inline-grid
|
||||
-moz-grid-group -moz-grid-line -moz-stack -moz-inline-stack -moz-deck
|
||||
|
|
|
@ -1898,8 +1898,10 @@ pub fn apply_declarations<'a, F, I>(viewport_size: Size2D<Au>,
|
|||
let is_item = matches!(context.inherited_style.get_box().clone_display(),
|
||||
% if product == "gecko":
|
||||
computed_values::display::T::grid |
|
||||
computed_values::display::T::inline_grid |
|
||||
% endif
|
||||
computed_values::display::T::flex);
|
||||
computed_values::display::T::flex |
|
||||
computed_values::display::T::inline_flex);
|
||||
let (blockify_root, blockify_item) = match flags.contains(SKIP_ROOT_AND_ITEM_BASED_DISPLAY_FIXUP) {
|
||||
false => (is_root_element, is_item),
|
||||
true => (false, false),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue