layout: Correctly handle margins in sticky positioning (#39393)

This fixes the logic that computes sticky offset bounds in order to
correctly take margins into account.

Testing: One test passes
Fixes: #39389

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-09-25 18:27:10 +02:00 committed by GitHub
parent e3e2dcb5a2
commit 7a3a28c7f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 74 additions and 21 deletions

View file

@ -1,3 +0,0 @@
[position-sticky-margins.html]
[The margin is taken into account when making sure the sticky element does not escape its container]
expected: FAIL