diff --git a/Libraries/LibWeb/Painting/ViewportPaintable.cpp b/Libraries/LibWeb/Painting/ViewportPaintable.cpp index 22a3efecceb..e87e9dbd06d 100644 --- a/Libraries/LibWeb/Painting/ViewportPaintable.cpp +++ b/Libraries/LibWeb/Painting/ViewportPaintable.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -63,7 +64,9 @@ void ViewportPaintable::build_stacking_context_tree() void ViewportPaintable::paint_all_phases(PaintContext& context) { build_stacking_context_tree_if_needed(); + context.display_list_recorder().save_layer(); stacking_context()->paint(context); + context.display_list_recorder().restore(); } void ViewportPaintable::assign_scroll_frames() diff --git a/Tests/LibWeb/Ref/expected/color-hsl-ref.html b/Tests/LibWeb/Ref/expected/color-hsl-ref.html index 1f64585069c..acb1f3c7c4c 100644 --- a/Tests/LibWeb/Ref/expected/color-hsl-ref.html +++ b/Tests/LibWeb/Ref/expected/color-hsl-ref.html @@ -1,5 +1,6 @@ + diff --git a/Tests/LibWeb/Screenshot/images/border-radius-ref.png b/Tests/LibWeb/Screenshot/images/border-radius-ref.png index 73d70a29bd6..03672213826 100644 Binary files a/Tests/LibWeb/Screenshot/images/border-radius-ref.png and b/Tests/LibWeb/Screenshot/images/border-radius-ref.png differ diff --git a/Tests/LibWeb/Screenshot/images/clip-path-transformed-ref.png b/Tests/LibWeb/Screenshot/images/clip-path-transformed-ref.png index aca13768303..a0128d71485 100644 Binary files a/Tests/LibWeb/Screenshot/images/clip-path-transformed-ref.png and b/Tests/LibWeb/Screenshot/images/clip-path-transformed-ref.png differ diff --git a/Tests/LibWeb/Screenshot/images/css-background-clip-text.png b/Tests/LibWeb/Screenshot/images/css-background-clip-text.png index 60cc4b454d4..68c7dee6704 100644 Binary files a/Tests/LibWeb/Screenshot/images/css-background-clip-text.png and b/Tests/LibWeb/Screenshot/images/css-background-clip-text.png differ diff --git a/Tests/LibWeb/Screenshot/images/css-backgrounds-ref.png b/Tests/LibWeb/Screenshot/images/css-backgrounds-ref.png index 495b9b71246..edc8041a3f3 100644 Binary files a/Tests/LibWeb/Screenshot/images/css-backgrounds-ref.png and b/Tests/LibWeb/Screenshot/images/css-backgrounds-ref.png differ diff --git a/Tests/LibWeb/Screenshot/images/css-color-functions-ref.png b/Tests/LibWeb/Screenshot/images/css-color-functions-ref.png index 9905fa30fa1..cc627188197 100644 Binary files a/Tests/LibWeb/Screenshot/images/css-color-functions-ref.png and b/Tests/LibWeb/Screenshot/images/css-color-functions-ref.png differ diff --git a/Tests/LibWeb/Screenshot/images/css-compositing-ref.png b/Tests/LibWeb/Screenshot/images/css-compositing-ref.png new file mode 100644 index 00000000000..15e83944352 Binary files /dev/null and b/Tests/LibWeb/Screenshot/images/css-compositing-ref.png differ diff --git a/Tests/LibWeb/Screenshot/images/css-filter-drop-shadow-ref.png b/Tests/LibWeb/Screenshot/images/css-filter-drop-shadow-ref.png index c73f22b9f35..849f90ad7e3 100644 Binary files a/Tests/LibWeb/Screenshot/images/css-filter-drop-shadow-ref.png and b/Tests/LibWeb/Screenshot/images/css-filter-drop-shadow-ref.png differ diff --git a/Tests/LibWeb/Screenshot/images/css-filter-ref.png b/Tests/LibWeb/Screenshot/images/css-filter-ref.png index 406f2571e89..04adaba0735 100644 Binary files a/Tests/LibWeb/Screenshot/images/css-filter-ref.png and b/Tests/LibWeb/Screenshot/images/css-filter-ref.png differ diff --git a/Tests/LibWeb/Screenshot/images/css-gradients-ref.png b/Tests/LibWeb/Screenshot/images/css-gradients-ref.png index 25ffc802c4c..2caf250d75e 100644 Binary files a/Tests/LibWeb/Screenshot/images/css-gradients-ref.png and b/Tests/LibWeb/Screenshot/images/css-gradients-ref.png differ diff --git a/Tests/LibWeb/Screenshot/images/inline-node-ref.png b/Tests/LibWeb/Screenshot/images/inline-node-ref.png index a659c78345d..bb12323245d 100644 Binary files a/Tests/LibWeb/Screenshot/images/inline-node-ref.png and b/Tests/LibWeb/Screenshot/images/inline-node-ref.png differ diff --git a/Tests/LibWeb/Screenshot/images/nested-boxes-with-hidden-overflow-and-border-radius-ref.png b/Tests/LibWeb/Screenshot/images/nested-boxes-with-hidden-overflow-and-border-radius-ref.png index 66bb3e50185..365600c05e6 100644 Binary files a/Tests/LibWeb/Screenshot/images/nested-boxes-with-hidden-overflow-and-border-radius-ref.png and b/Tests/LibWeb/Screenshot/images/nested-boxes-with-hidden-overflow-and-border-radius-ref.png differ diff --git a/Tests/LibWeb/Screenshot/images/object-fit-position.png b/Tests/LibWeb/Screenshot/images/object-fit-position.png index 1f4552f0c09..3a10f8de416 100644 Binary files a/Tests/LibWeb/Screenshot/images/object-fit-position.png and b/Tests/LibWeb/Screenshot/images/object-fit-position.png differ diff --git a/Tests/LibWeb/Screenshot/images/outer-box-shadow-ref.png b/Tests/LibWeb/Screenshot/images/outer-box-shadow-ref.png index 3a19116753d..76056a5b296 100644 Binary files a/Tests/LibWeb/Screenshot/images/outer-box-shadow-ref.png and b/Tests/LibWeb/Screenshot/images/outer-box-shadow-ref.png differ diff --git a/Tests/LibWeb/Screenshot/images/svg-clip-path-transform-ref.png b/Tests/LibWeb/Screenshot/images/svg-clip-path-transform-ref.png index 408c5b75810..f3568e26637 100644 Binary files a/Tests/LibWeb/Screenshot/images/svg-clip-path-transform-ref.png and b/Tests/LibWeb/Screenshot/images/svg-clip-path-transform-ref.png differ diff --git a/Tests/LibWeb/Screenshot/images/svg-gradient-paint-transformation-ref.png b/Tests/LibWeb/Screenshot/images/svg-gradient-paint-transformation-ref.png index 92cd9fa7613..432415ff808 100644 Binary files a/Tests/LibWeb/Screenshot/images/svg-gradient-paint-transformation-ref.png and b/Tests/LibWeb/Screenshot/images/svg-gradient-paint-transformation-ref.png differ diff --git a/Tests/LibWeb/Screenshot/images/svg-path-offset-rounding-ref.png b/Tests/LibWeb/Screenshot/images/svg-path-offset-rounding-ref.png index 93daec0df6c..6b2fe435311 100644 Binary files a/Tests/LibWeb/Screenshot/images/svg-path-offset-rounding-ref.png and b/Tests/LibWeb/Screenshot/images/svg-path-offset-rounding-ref.png differ diff --git a/Tests/LibWeb/Screenshot/images/svg-stroke-styles-ref.png b/Tests/LibWeb/Screenshot/images/svg-stroke-styles-ref.png index 9771698eac1..d04edf568f6 100644 Binary files a/Tests/LibWeb/Screenshot/images/svg-stroke-styles-ref.png and b/Tests/LibWeb/Screenshot/images/svg-stroke-styles-ref.png differ diff --git a/Tests/LibWeb/Screenshot/images/svg-textPath-ref.png b/Tests/LibWeb/Screenshot/images/svg-textPath-ref.png index d86d8f6849b..31facc1b6ee 100644 Binary files a/Tests/LibWeb/Screenshot/images/svg-textPath-ref.png and b/Tests/LibWeb/Screenshot/images/svg-textPath-ref.png differ diff --git a/Tests/LibWeb/Screenshot/images/text-decorations.png b/Tests/LibWeb/Screenshot/images/text-decorations.png index dfb47c2b2b6..63c579f2b12 100644 Binary files a/Tests/LibWeb/Screenshot/images/text-decorations.png and b/Tests/LibWeb/Screenshot/images/text-decorations.png differ diff --git a/Tests/LibWeb/Screenshot/images/text-shadow-ref.png b/Tests/LibWeb/Screenshot/images/text-shadow-ref.png index cab91786e9a..55e4dd0dc3a 100644 Binary files a/Tests/LibWeb/Screenshot/images/text-shadow-ref.png and b/Tests/LibWeb/Screenshot/images/text-shadow-ref.png differ diff --git a/Tests/LibWeb/Screenshot/input/css-compositing.html b/Tests/LibWeb/Screenshot/input/css-compositing.html new file mode 100644 index 00000000000..29b24b805bc --- /dev/null +++ b/Tests/LibWeb/Screenshot/input/css-compositing.html @@ -0,0 +1,44 @@ + + + +
111
+
222
+
333
+
444
+
555