mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
script: Remove absolute positioning workaround from scrollIntoView
implementation (#39441)
This isn't needed as the border box query already takes into account the containing block chain. Instead, consistently calculate the new scroll position for a scroller relative to its current scroll offset. In addition, fix a small bug where the border of a scroll container was considered part of scrollport. Testing: A new WPT test is added. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
16d2e030eb
commit
c63311af02
5 changed files with 104 additions and 119 deletions
7
tests/wpt/meta/MANIFEST.json
vendored
7
tests/wpt/meta/MANIFEST.json
vendored
|
@ -632462,6 +632462,13 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"scrollIntoView-scrolling-box-with-large-border.html": [
|
||||
"424c6f56bd0b8fb01e268184533a6b081253be71",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"scrollIntoView-scrolling-container.html": [
|
||||
"9f7c88aaeb39610d5adffd046f72bb3a10491fb4",
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue