Repository navigation
Commit e9b0973
authored
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: D134834007
Pull Request resolved: #603441 parent 2de6e30 commit e9b0973
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