mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
In Element::set_scroll_offset(), when setting a pseudo-element's scroll offset, the code was also incorrectly setting the generating element's own m_scroll_offset. Added an else branch so only the pseudo-element's offset is set. Also adds a ref test for scrollable pseudo-elements to prevent regression. The test scrolls a ::before pseudo-element via wheel event and verifies the content scrolls correctly.
642 B
642 B