mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibWeb: Make the initial containing block style have display:block
We always create a Layout::InitialContainingBlock for the ICB, but in a future where we always honor the CSS::Display everywhere, we need to make sure everyone has the right display values.
This commit is contained in:
parent
6bbd6b1453
commit
1e26d3d02d
Notes:
sideshowbarker
2024-07-17 18:46:30 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1e26d3d02d
1 changed files with 1 additions and 0 deletions
|
@ -1212,6 +1212,7 @@ NonnullRefPtr<StyleProperties> StyleComputer::create_document_style() const
|
|||
absolutize_values(style, nullptr, {});
|
||||
style->set_property(CSS::PropertyID::Width, CSS::LengthStyleValue::create(CSS::Length::make_px(viewport_rect().width())));
|
||||
style->set_property(CSS::PropertyID::Height, CSS::LengthStyleValue::create(CSS::Length::make_px(viewport_rect().height())));
|
||||
style->set_property(CSS::PropertyID::Display, CSS::IdentifierStyleValue::create(CSS::ValueID::Block));
|
||||
return style;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue