Skip to content

Commit 665b8eb

Browse files
authored
Merge pull request #2063 from maksumi/patch-3
Update article.md
2 parents 3a924fc + 6615df4 commit 665b8eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

2-ui/1-document/11-coordinates/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ As you can see, `left/top` do not equal `x/y` in such case.
8888
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.
8989
```
9090
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.
9393
9494
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()`.
9595
```

0 commit comments

Comments
 (0)