diff options
author | MacDue <macdue@dueutil.tech> | 2022-10-10 21:28:57 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-13 11:16:27 +0200 |
commit | 450792018744299782c59ce400c9e03a7c361aeb (patch) | |
tree | e75289b2e7ed611648617f836542d74a01f9dbba /Tests | |
parent | f5e68fcc2056f3deae6183a3906dcf66f05107f2 (diff) | |
download | serenity-450792018744299782c59ce400c9e03a7c361aeb.zip |
LibWeb: Fix position: fixed canvases/images disappearing when scrolling
This fixes the Serenity logo vanishing after scrolling on the 4th
birthday post.
The previous check did not account for any translation in the painter.
This now uses the painter's clip rect and translation to work out
if a rect is visible. It also makes use of `absolute_paint_rect()`
rather than `absolute_rect()` which can account for things like
box-shadows.
Diffstat (limited to 'Tests')
0 files changed, 0 insertions, 0 deletions