diff --git a/index.bs b/index.bs index d438d4a..87d1258 100644 --- a/index.bs +++ b/index.bs @@ -309,7 +309,7 @@ is the rectangle we'll use to check against the targets.
it's the element's content area.
Otherwise, -
it's the result of running the {{Element/getBoundingClientRect()}} algorithm on the intersection root. +
it's the result of getting the bounding box for the intersection root. When calculating the root intersection rectangle for @@ -385,8 +385,8 @@ dictionary IntersectionObserverEntryInit {
: boundingClientRect :: - A {{DOMRectReadOnly}} obtained by running the {{Element/getBoundingClientRect()}} algorithm - on the {{IntersectionObserverEntry/target}}. + A {{DOMRectReadOnly}} obtained by getting the bounding box + for {{IntersectionObserverEntry/target}}. : intersectionRect :: {{IntersectionObserverEntry/boundingClientRect}}, intersected by @@ -468,8 +468,7 @@ dictionary IntersectionObserverInit { Threshold values must be in the range of [0, 1.0] and represent a percentage of the area of the rectangle produced - by running the {{Element/getBoundingClientRect()}} algorithm - on the target. + by getting the bounding box for target. Note: 0.0 is effectively "any non-zero number of pixels".
@@ -623,7 +622,7 @@ Compute the Intersection of a Target Element and the Root To compute the intersection between a target |target| and an intersection root |root|, run these steps: -1. Let |intersectionRect| be the result of running the {{Element/getBoundingClientRect()}} algorithm on |target|. +1. Let |intersectionRect| be the result of getting the bounding box for |target|. 2. Let |container| be the containing block of |target|. 3. While |container| is not |root|: 1. If |container| is the {{document}} of a nested browsing context, @@ -665,8 +664,8 @@ To run the update intersection observations steps for a 3. If the intersection root is an {{Element}}, and |target| is not a descendant of the intersection root in the containing block chain, skip to step 11. - 4. Set |targetRect| to the {{DOMRectReadOnly}} obtained - by running the {{Element/getBoundingClientRect()}} algorithm on |target|. + 4. Set |targetRect| to the {{DOMRectReadOnly}} obtained by getting the bounding box for + |target|. 4. Let |intersectionRect| be the result of running the compute the intersection algorithm on |target| and |observer|'s intersection root. 5. Let |targetArea| be |targetRect|'s area. diff --git a/polyfill/package.json b/polyfill/package.json deleted file mode 100644 index e1c8042..0000000 --- a/polyfill/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "intersection-observer", - "version": "0.12.1", - "description": "A polyfill for IntersectionObserver", - "main": "intersection-observer.js", - "repository": { - "type": "git", - "url": "git@github.com:w3c/IntersectionObserver.git" - }, - "keywords": [ - "Intersection", - "Observer" - ], - "author": { - "name": "Philip Walton", - "email": "philip@philipwalton.com", - "url": "http://philipwalton.com" - }, - "license": "W3C-20150513", - "bugs": { - "url": "https://github.com/w3c/IntersectionObserver/issues" - } -}