Skip to content

Commit 24b284b

Browse files
authored
Update article.md
Further changes to `offsetParent` description.
1 parent 1bccdbb commit 24b284b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

2-ui/1-document/09-size-and-scroll/article.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ These properties are rarely needed, but still they are the "most outer" geometry
5757
5858
The `offsetParent` is the nearest ancestor that the browser uses for calculating coordinates during rendering.
5959
60-
That's the nearest ancestor that satisfies one of the following conditions:
60+
That's the nearest ancestor that is one of the following:
6161
6262
1. CSS-positioned (`position` is `absolute`, `relative`, `fixed` or `sticky`),
63-
2. or `<td>`, `<th>`, `<table>`,
64-
2. or `<body>`.
63+
2. `<td>`, `<th>`, or `<table>`,
64+
3. or `<body>`.
6565
6666
Properties `offsetLeft/offsetTop` provide x/y coordinates relative to `offsetParent` upper-left corner.
6767

0 commit comments

Comments
 (0)