mirror of
https://github.com/servo/servo.git
synced 2025-10-03 18:19:14 +01:00
Calling scroll() on an element which is not rendered (by a parent with display: none) would previously cause a crash. In fact, we should terminate the algorithm [https://drafts.csswg.org/cssom-view/#dom-element-scroll] at step 10 in this situation. The fix hinges on implementing Element::has_css_layout_box() correctly, rather than just returning true in all cases as we did previously. Fixes #19430.
15 MiB
15 MiB
The file is too large to be shown. |