mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
LibWeb: Implement more IntersectionObserver attributes
This commit is contained in:
parent
7444f76b0d
commit
3e536a4cd7
Notes:
github-actions[bot]
2024-11-23 08:53:22 +00:00
Author: https://github.com/Psychpsyo
Commit: 3e536a4cd7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2507
9 changed files with 345 additions and 17 deletions
|
@ -11,9 +11,12 @@ callback IntersectionObserverCallback = undefined (sequence<IntersectionObserver
|
|||
interface IntersectionObserver {
|
||||
constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options = {});
|
||||
readonly attribute (Element or Document)? root;
|
||||
[FIXME] readonly attribute DOMString rootMargin;
|
||||
readonly attribute DOMString rootMargin;
|
||||
readonly attribute DOMString scrollMargin;
|
||||
// FIXME: `sequence<double>` should be `FrozenArray<double>`
|
||||
readonly attribute sequence<double> thresholds;
|
||||
readonly attribute long delay;
|
||||
readonly attribute boolean trackVisibility;
|
||||
undefined observe(Element target);
|
||||
undefined unobserve(Element target);
|
||||
undefined disconnect();
|
||||
|
@ -24,6 +27,8 @@ interface IntersectionObserver {
|
|||
dictionary IntersectionObserverInit {
|
||||
(Element or Document)? root = null;
|
||||
DOMString rootMargin = "0px";
|
||||
// FIXME: DOMString scrollMargin = "0px";
|
||||
DOMString scrollMargin = "0px";
|
||||
(double or sequence<double>) threshold = 0;
|
||||
long delay = 0;
|
||||
boolean trackVisibility = false;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue