Truly independent web browser
Tests/LibWeb: Show the root background of absolutely positioned pages
Andreas Kling00802840161d
diff --git a/Tests/LibWeb/Text/expected/display_list/root-background-absolutely-positioned-overflow.txt b/Tests/LibWeb/Text/expected/display_list/root-background-absolutely-positioned-overflow.txtnew file mode 100644index 00000000000..01e02d7f73e--- /dev/null+++ b/Tests/LibWeb/Text/expected/display_list/root-background-absolutely-positioned-overflow.txt@@ -0,0 +1,12 @@+AccumulatedVisualContext Tree:+ spatial:+ [s0] transform=[1,0,0,1,0,0] origin=(0,0) (Viewport<#document>)+ [s1] scroll (Viewport<#document>)+ effects:+ [e0 in s0] effects=[]++DisplayList:+CompositorScrollNode@s0/e0 scroll_node_index=s1 parent_scroll_node_index=s0 scrollport_rect=[0,0 800x600] min_scroll_offset=[0,0] max_scroll_offset=[0,2400] is_viewport=true+DrawRepeatedTile@s1/e0 dst_rect=[0,0 50x50] clip_rect=[0,0 800x613] tile_size=[50x50] tile_step=[50x50] scaling_mode=Bilinear inline_clips=[clip=[0,0 800x613]]+ PaintLinearGradient@s1/e0 rect=[0,0 50x50]+diff --git a/Tests/LibWeb/Text/input/display_list/root-background-absolutely-positioned-overflow.html b/Tests/LibWeb/Text/input/display_list/root-background-absolutely-positioned-overflow.htmlnew file mode 100644index 00000000000..ce4db356eef--- /dev/null+++ b/Tests/LibWeb/Text/input/display_list/root-background-absolutely-positioned-overflow.html@@ -0,0 +1,24 @@+<!DOCTYPE html>+<style>+ html {+ height: 100%;+ background: repeating-linear-gradient(green 0 25px, lime 25px 50px) 0 0 / 50px 50px;+ }+ body {+ margin: 0;+ height: 100%;+ }+ #content {+ position: absolute;+ top: 0;+ width: 100px;+ height: 3000px;+ }+</style>+<div id="content"></div>+<script src="../include.js"></script>+<script>+ test(() => {+ println(internals.dumpDisplayList());+ });+</script>