Skip to content

Commit 4c9e71e

Browse files
committed
Revert change to rootMargin, split out to PR w3c#486
1 parent 24fe6a1 commit 4c9e71e

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

index.bs

+2-9
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ use-cases. Per-{{observe()}} options could be provided in the future if the need
218218
interface IntersectionObserver {
219219
constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options = {});
220220
readonly attribute (Element or Document)? root;
221-
attribute DOMString rootMargin;
221+
readonly attribute DOMString rootMargin;
222222
attribute FrozenArray<double> thresholds;
223223
undefined observe(Element target);
224224
undefined unobserve(Element target);
@@ -279,14 +279,7 @@ interface IntersectionObserver {
279279
this is not guaranteed to be identical to the |options|.{{IntersectionObserverInit/rootMargin}}
280280
passed to the {{IntersectionObserver}} constructor. If no
281281
{{IntersectionObserverInit/rootMargin}} was passed to the {{IntersectionObserver}}
282-
constructor, and the {{IntersectionObserver/rootMargin}} setter has not been invoked,
283-
the value of this attribute is "0px 0px 0px 0px".
284-
285-
On setting, attempt to <a>parse a root margin</a>
286-
from the given value.
287-
If a list is returned,
288-
set |this|'s internal {{[[rootMargin]]}} slot to that.
289-
Otherwise, <a>throw</a> a {{SyntaxError}} exception.
282+
constructor, the value of this attribute is "0px 0px 0px 0px".
290283
: <dfn>thresholds</dfn>
291284
::
292285
On getting, returns {{[[thresholds]]}}, which is a list of thresholds,

0 commit comments

Comments
 (0)