Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit cc20547

Browse files
committed
Add Intersection Observer
1 parent a3699cd commit cc20547

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

scripts/9/data.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2724,6 +2724,15 @@ var tests = [
27242724
[ 'w3c', 'http://www.w3.org/TR/dom/#mutation-observers' ],
27252725
[ 'mdn', '/Web/API/MutationObserver' ]
27262726
]
2727+
}, {
2728+
id: 'intersectionObserver',
2729+
name: 'Intersection Observer',
2730+
value: { maximum: 1, award: { PREFIX: 1 } },
2731+
status: 'experimental',
2732+
urls: [
2733+
[ 'w3c', 'https://wicg.github.io/IntersectionObserver/' ],
2734+
[ 'mdn', '/Web/API/Intersection_Observer_API' ]
2735+
]
27272736
}, {
27282737
id: 'url',
27292738
name: 'URL API',

scripts/9/engine.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3776,6 +3776,16 @@ Test9 = (function () {
37763776
},
37773777

37783778

3779+
/* intersection observer */
3780+
3781+
function (results) {
3782+
results.addItem({
3783+
key: 'scripting.intersectionObserver',
3784+
passed: 'IntersectionObserver' in window ? YES : 'WebKitIntersectionObserver' in window || 'MozIntersectionObserver' in window || 'msIntersectionObserver' in window ? YES | PREFIX : NO
3785+
});
3786+
},
3787+
3788+
37793789
/* url api */
37803790

37813791
function (results) {

0 commit comments

Comments
 (0)