LibWeb/HTML: Implement HTMLElement.scrollParent

Corresponds to d3effb701c

What a "fixed position container" is isn't clear to me, and we don't
seem to use that elsewhere, so I've left the steps using that as FIXMEs
for now.

There's no test coverage for this in WPT yet and I'm not confident
enough in the specific behaviour to write one myself. So, waiting on
https://github.com/web-platform-tests/wpt/issues/53214
This commit is contained in:
Sam Atkins 2025-06-17 10:43:45 +01:00
commit af9a227ca3
Notes: github-actions[bot] 2025-06-17 11:39:46 +00:00
3 changed files with 43 additions and 0 deletions

View file

@ -105,6 +105,7 @@ public:
int offset_width() const;
int offset_height() const;
GC::Ptr<Element> offset_parent() const;
GC::Ptr<Element> scroll_parent() const;
bool cannot_navigate() const;