Skip to content

Commit cdcbef2

Browse files
authored
Merge pull request #33 from hitsuji-no-shippo/patch-3
2 parents 212eb56 + 6beba3b commit cdcbef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function showRect(elem) {
4949

5050
また:
5151

52-
- 座標は少数の場合があります。それは正常で、内部的にはブラウザは計算のためにそれを使用します。私たちは `style.position.left/top` へ設定するときにそれらを丸める必要はありません。ブラウザで少数は問題ありません
52+
- 座標は小数の場合があります。それは正常で、内部的にはブラウザは計算のためにそれを使用します。私たちは `style.position.left/top` へ設定するときにそれらを丸める必要はありません。ブラウザで小数は問題ありません
5353
- 座標は負の値になる場合があります。例えば、ページが下にスクロールされ、`elem` の上端がウィンドウの上にある場合、`elem.getBoundingClientRect().top` は負の値になります。
5454
- Chromeような一部のブラウザでは、結果 `getBoundingClientRect` にプロパティ `width``height` も追加します。減算することでもそれらを取得することは可能です: `height=bottom-top`, `width=right-left`
5555

0 commit comments

Comments
 (0)