From 98c3c09e3eb815a25092b5f0248d426a3fe10b3f Mon Sep 17 00:00:00 2001 From: Youngsoo Son Date: Wed, 13 Nov 2013 18:08:42 +0900 Subject: [PATCH] Make list-item's display style block --- src/components/main/layout/box_builder.rs | 1 + src/components/style/properties.rs.mako | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/main/layout/box_builder.rs b/src/components/main/layout/box_builder.rs index 80d76b68aff..ee492c85304 100644 --- a/src/components/main/layout/box_builder.rs +++ b/src/components/main/layout/box_builder.rs @@ -392,6 +392,7 @@ impl LayoutTreeBuilder { | 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::list_item => display::block, display => display, }, diff --git a/src/components/style/properties.rs.mako b/src/components/style/properties.rs.mako index 7d1788d371d..e86de37b89a 100644 --- a/src/components/style/properties.rs.mako +++ b/src/components/style/properties.rs.mako @@ -228,8 +228,8 @@ pub mod longhands { 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 none"> -// list-item pub fn to_computed_value(value: SpecifiedValue, context: &computed::Context) -> computed_value::T { // if context.is_root_element && value == list_item {