Update article.md
Further changes to `offsetParent` description.
This commit is contained in:
parent
1bccdbb73e
commit
24b284b44f
1 changed files with 3 additions and 3 deletions
|
@ -57,11 +57,11 @@ These properties are rarely needed, but still they are the "most outer" geometry
|
|||
|
||||
The `offsetParent` is the nearest ancestor that the browser uses for calculating coordinates during rendering.
|
||||
|
||||
That's the nearest ancestor that satisfies one of the following conditions:
|
||||
That's the nearest ancestor that is one of the following:
|
||||
|
||||
1. CSS-positioned (`position` is `absolute`, `relative`, `fixed` or `sticky`),
|
||||
2. or `<td>`, `<th>`, `<table>`,
|
||||
2. or `<body>`.
|
||||
2. `<td>`, `<th>`, or `<table>`,
|
||||
3. or `<body>`.
|
||||
|
||||
Properties `offsetLeft/offsetTop` provide x/y coordinates relative to `offsetParent` upper-left corner.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue