Skip to content

Commit bc92283

Browse files
author
Maksumi Murakami
authored
Update article.md
Changes proposes for the [issue 2049](javascript-tutorial#2049)
1 parent 3a924fc commit bc92283

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 don'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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy