mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
fix #1211: for table-related elements, handle temporarily as 'block' display intead of 'inline' display
This commit is contained in:
parent
4297aa33ad
commit
90f88dcc06
2 changed files with 9 additions and 3 deletions
|
@ -388,6 +388,11 @@ impl LayoutTreeBuilder {
|
|||
let display = match node.type_id() {
|
||||
ElementNodeTypeId(_) => match node.style().Box.display {
|
||||
display::none => return NoGenerator,
|
||||
display::table | display::inline_table | display::table_row_group
|
||||
| display::table_header_group | display::table_footer_group
|
||||
| display::table_row | display::table_column_group
|
||||
| display::table_column | display::table_cell | display::table_caption
|
||||
=> display::block,
|
||||
display => display,
|
||||
},
|
||||
TextNodeTypeId => display::inline,
|
||||
|
|
|
@ -225,10 +225,11 @@ pub mod longhands {
|
|||
|
||||
// TODO: don't parse values we don't support
|
||||
<%self:single_keyword_computed name="display"
|
||||
values="inline block inline-block none">
|
||||
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
|
||||
none">
|
||||
// list-item
|
||||
// table inline-table table-row-group table-header-group table-footer-group
|
||||
// table-row table-column-group table-column table-cell table-caption
|
||||
pub fn to_computed_value(value: SpecifiedValue, context: &computed::Context)
|
||||
-> computed_value::T {
|
||||
// if context.is_root_element && value == list_item {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue