Update article.md
`offsetParent` criteria list -- minor formatting change to previous change (added spaces).
This commit is contained in:
parent
7279e9ce99
commit
cb3aadc598
1 changed files with 2 additions and 2 deletions
|
@ -59,8 +59,8 @@ The `offsetParent` is the nearest ancestor that the browser uses for calculating
|
|||
|
||||
That's the nearest ancestor that is one of the following:
|
||||
|
||||
1. CSS-positioned (`position` is `absolute`, `relative`, `fixed` or `sticky`), or
|
||||
2. `<td>`, `<th>`, or `<table>`, or
|
||||
1. CSS-positioned (`position` is `absolute`, `relative`, `fixed` or `sticky`), or
|
||||
2. `<td>`, `<th>`, or `<table>`, or
|
||||
3. `<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