You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2-ui/1-document/11-coordinates/article.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,8 +88,8 @@ As you can see, `left/top` do not equal `x/y` in such case.
88
88
In practice though, `elem.getBoundingClientRect()` always returns positive width/height, here we mention negative `width/height` only for you to understand why these seemingly duplicate properties are not actually duplicates.
89
89
```
90
90
91
-
```warn header="Internet Explorer and Edge: no support for `x/y`"
92
-
Internet Explorer and Edge don't support `x/y` properties for historical reasons.
91
+
```warn header="Internet Explorer: no support for `x/y`"
92
+
Internet Explorer doesn't support `x/y` properties for historical reasons.
93
93
94
94
So we can either make a polyfill (add getters in `DomRect.prototype`) or just use `top/left`, as they are always the same as `x/y` for positive `width/height`, in particular in the result of `elem.getBoundingClientRect()`.
0 commit comments