Update article.md

`offsetParent` criteria list -- minor formatting change to previous change (added spaces).
This commit is contained in:
Peter Roche 2019-11-07 21:23:54 -07:00 committed by GitHub
parent 7279e9ce99
commit cb3aadc598
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: That's the nearest ancestor that is one of the following:
1. CSS-positioned (`position` is `absolute`, `relative`, `fixed` or `sticky`), or 1. CSS-positioned (`position` is `absolute`, `relative`, `fixed` or `sticky`), or
2. `<td>`, `<th>`, or `<table>`, or 2. `<td>`, `<th>`, or `<table>`, or
3. `<body>`. 3. `<body>`.
Properties `offsetLeft/offsetTop` provide x/y coordinates relative to `offsetParent` upper-left corner. Properties `offsetLeft/offsetTop` provide x/y coordinates relative to `offsetParent` upper-left corner.