mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
LibWeb+WebContent: Make document background and Viewport transparent
This means iframes are transparent by default (as in firefox/chrome). Painting the outermost canvas background is moved to the PageHost.
This commit is contained in:
parent
5e7c838160
commit
f2f14ad9bd
5 changed files with 9 additions and 9 deletions
|
@ -257,7 +257,7 @@ void PaintableBox::paint_background(PaintContext& context) const
|
|||
// user agents must instead propagate the computed values of the background properties from that element’s first HTML BODY child element.
|
||||
if (document().html_element()->should_use_body_background_properties()) {
|
||||
background_layers = document().background_layers();
|
||||
background_color = document().background_color(context.palette());
|
||||
background_color = document().background_color();
|
||||
}
|
||||
} else {
|
||||
background_rect = absolute_padding_box_rect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue