Skip to content

Commit

Permalink
Make list-item's display style block
Browse files Browse the repository at this point in the history
  • Loading branch information
sonwow committed Nov 13, 2013
1 parent 0126286 commit 98c3c09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/main/layout/box_builder.rs
Expand Up @@ -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,
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/style/properties.rs.mako
Expand Up @@ -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 {
Expand Down

3 comments on commit 98c3c09

@SimonSapin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

@larsbergstrom
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors: retry

@metajack
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors: retry

Please sign in to comment.