1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

LibWeb/DOM: Add container option to scrollIntoView options

Corresponds to https://github.com/w3c/csswg-drafts/pull/11673 , with the
addition of the fixes in https://github.com/w3c/csswg-drafts/pull/11701
This commit is contained in:
Sam Atkins 2025-02-12 16:38:32 +00:00 committed by Alexander Kalenik
parent 0a9c66ef07
commit 29d5eda02d
Notes: github-actions[bot] 2025-02-12 21:09:14 +00:00
3 changed files with 201 additions and 144 deletions

View file

@ -51,6 +51,7 @@ struct GetHTMLOptions {
struct ScrollIntoViewOptions : public HTML::ScrollOptions {
Bindings::ScrollLogicalPosition block { Bindings::ScrollLogicalPosition::Start };
Bindings::ScrollLogicalPosition inline_ { Bindings::ScrollLogicalPosition::Nearest };
Bindings::ScrollIntoViewContainer container { Bindings::ScrollIntoViewContainer::All };
};
// https://drafts.csswg.org/cssom-view-1/#dictdef-checkvisibilityoptions