mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
LibWeb: Fill the whole viewport with the correct background color
CSS2 tells us to use the HTML element's background color if not transparent. Otherwise, the BODY element's background color.
This commit is contained in:
parent
ca85ac26d4
commit
e0c7727934
2 changed files with 16 additions and 13 deletions
|
@ -47,7 +47,7 @@ void InitialContainingBlock::build_stacking_context_tree()
|
|||
void InitialContainingBlock::paint_all_phases(PaintContext& context)
|
||||
{
|
||||
build_stacking_context_tree_if_needed();
|
||||
context.painter().fill_rect(enclosing_int_rect(paint_box()->absolute_rect()), context.palette().base());
|
||||
context.painter().fill_rect(enclosing_int_rect(paint_box()->absolute_rect()), document().background_color(context.palette()));
|
||||
context.painter().translate(-context.viewport_rect().location());
|
||||
paint_box()->stacking_context()->paint(context);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue