Update article.md
Grammatical changes to description of `offsetParent`. Adding 'the' before 'browser', removing commas. Changing "satisfies the following conditions" to "satisfies **one of** the following conditions", which I **think** is what is meant.
This commit is contained in:
parent
5a1825c9ac
commit
1afdc8f43a
1 changed files with 2 additions and 2 deletions
|
@ -55,9 +55,9 @@ Let's start exploring the properties starting from the outside of the element.
|
||||||
|
|
||||||
These properties are rarely needed, but still they are the "most outer" geometry properties, so we'll start with them.
|
These properties are rarely needed, but still they are the "most outer" geometry properties, so we'll start with them.
|
||||||
|
|
||||||
The `offsetParent` is the nearest ancestor, that browser uses for calculating coordinates during rendering.
|
The `offsetParent` is the nearest ancestor that the browser uses for calculating coordinates during rendering.
|
||||||
|
|
||||||
That's the nearest ancestor, that satisfies following conditions:
|
That's the nearest ancestor that satisfies one of the following conditions:
|
||||||
|
|
||||||
1. CSS-positioned (`position` is `absolute`, `relative`, `fixed` or `sticky`),
|
1. CSS-positioned (`position` is `absolute`, `relative`, `fixed` or `sticky`),
|
||||||
2. or `<td>`, `<th>`, `<table>`,
|
2. or `<td>`, `<th>`, `<table>`,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue