minor fixes
This commit is contained in:
parent
6c15ba465d
commit
771aab479d
1 changed files with 1 additions and 1 deletions
|
@ -427,7 +427,7 @@ The animations of properties that skip the Layout step are faster. It's even bet
|
||||||
|
|
||||||
For most CSS properties, the rule is simple: if its change may affect geometry, move elements (even in theory), then it triggers Layout. Otherwise (e.g. a `color` change may not shift elements around), the browser doesn't need to calculate geometry and directly goes to Paint, or even Composite step. You can find a longer list of CSS properties and which stages they trigger at <https://csstriggers.com>.
|
For most CSS properties, the rule is simple: if its change may affect geometry, move elements (even in theory), then it triggers Layout. Otherwise (e.g. a `color` change may not shift elements around), the browser doesn't need to calculate geometry and directly goes to Paint, or even Composite step. You can find a longer list of CSS properties and which stages they trigger at <https://csstriggers.com>.
|
||||||
|
|
||||||
The `transform` property is a notable exception:
|
The `transform` property is special:
|
||||||
- CSS transforms affect the target element box as a whole (rotate, flip, stretch, shift it).
|
- CSS transforms affect the target element box as a whole (rotate, flip, stretch, shift it).
|
||||||
- CSS transforms never affect neighbour elements.
|
- CSS transforms never affect neighbour elements.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue