mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
dom: IntersectionObserver initialization (#35314)
* Add internal slot definition Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> * Add initialization for new IntersectionObserver Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> * Move observer initialization Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> * Update WPT tests Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> * Make a copy of style IntersectionObserverRootMargin Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> * Move initialization to account for rooted expression Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> * Fix some fields typing Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> * Impl rest of IntersectionObserver interface Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> * Fix tidy issue Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> * Apply types logic and tidy fix from suggestions Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> * Add allow unrooted for add registration to element Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> --------- Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>
This commit is contained in:
parent
610a1c2303
commit
becd097585
11 changed files with 439 additions and 64 deletions
|
@ -1,3 +0,0 @@
|
|||
[idlharness.window.html]
|
||||
[IntersectionObserver interface: observer must inherit property "thresholds" with the proper type]
|
||||
expected: FAIL
|
|
@ -1,21 +0,0 @@
|
|||
[observer-attributes.html]
|
||||
[observer.thresholds]
|
||||
expected: FAIL
|
||||
|
||||
[observer.rootMargin]
|
||||
expected: FAIL
|
||||
|
||||
[empty observer.thresholds]
|
||||
expected: FAIL
|
||||
|
||||
[whitespace observer.rootMargin]
|
||||
expected: FAIL
|
||||
|
||||
[set observer.root]
|
||||
expected: FAIL
|
||||
|
||||
[set observer.thresholds]
|
||||
expected: FAIL
|
||||
|
||||
[set observer.rootMargin]
|
||||
expected: FAIL
|
|
@ -1,21 +0,0 @@
|
|||
[observer-exceptions.html]
|
||||
[IntersectionObserver constructor with { threshold: [1.1\] }]
|
||||
expected: FAIL
|
||||
|
||||
[IntersectionObserver constructor with { rootMargin: "1" }]
|
||||
expected: FAIL
|
||||
|
||||
[IntersectionObserver constructor with { rootMargin: "2em" }]
|
||||
expected: FAIL
|
||||
|
||||
[IntersectionObserver constructor with { rootMargin: "auto" }]
|
||||
expected: FAIL
|
||||
|
||||
[IntersectionObserver constructor with { rootMargin: "calc(1px + 2px)" }]
|
||||
expected: FAIL
|
||||
|
||||
[IntersectionObserver constructor with { rootMargin: "1px !important" }]
|
||||
expected: FAIL
|
||||
|
||||
[IntersectionObserver constructor with { rootMargin: "1px 1px 1px 1px 1px" }]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue