aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/cssgroupingrule.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-04-25 02:12:16 +0200
committerGitHub <noreply@github.com>2024-04-25 00:12:16 +0000
commit1440406e91684771bb810ead6ac5ae710f55f3ea (patch)
tree87d36a29003045069d6e6971f022a27f47412900 /components/script/dom/cssgroupingrule.rs
parentbef6c295aadc7e9ea80ad9268642686fb37c26ee (diff)
downloadservo-1440406e91684771bb810ead6ac5ae710f55f3ea.tar.gz
servo-1440406e91684771bb810ead6ac5ae710f55f3ea.zip
script: Prevent "scroll to fragment" from scrolling offscreen (#32129)
Previously, the "scroll to fragment" operation could scroll past the end of the screen, because the scroll position was not clamped to viewport boundaries. Correct this by using the `Window::scroll()` method which handles this case. In addition, ensure that `Window`'s `current_viewport` member is initialized properly when it is created.
Diffstat (limited to 'components/script/dom/cssgroupingrule.rs')
0 files changed, 0 insertions, 0 deletions