Repository navigation
Commit fd40cd9
Document browser-compatible IntersectionObserver margins
Summary:
## Context
The Intersection Observer specification says percentage margins on every edge resolve against width. Chrome, Firefox, and Safari instead resolve vertical rootMargin percentages against height. Chrome and Safari also do so for scrollMargin, matching React Native. Preserve browser compatibility rather than changing existing consumers.
## Changes
Document the intentional compatibility divergence in `resolveEdgeMargins`, linking the specification, Chromium implementation, and https://issues.chromium.org/issues/40725112. No runtime behavior, helper signature, tests, or API snapshots change.
Changelog: [Internal]
Differential Revision: D1348340071 parent 3b49389 commit fd40cd9
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
105 | 115 | | |
106 | 116 | | |
107 | 117 | | |
| |||
0 commit comments