Update article.md

Further changes to `offsetParent` description.
This commit is contained in:
Peter Roche 2019-11-07 21:15:36 -07:00 committed by GitHub
parent 1bccdbb73e
commit 24b284b44f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.