Which of the following properties, when animated, would cause a "repaint" but not "reflow" in most browsers?
- color
- margin
- position
- width
When animated, changing the color property of an element typically causes a "repaint" (updating the pixels on the screen) but not a "reflow" (changing the layout of elements on the page). This is because changing the color doesn't affect the size or position of the element, but it does require repainting.
Loading...
Related Quiz
- You're creating a button hover effect where the button scales up gradually. Which combination of CSS properties would you primarily use?
- Which property in CSS is used to align text to the center?
- Which property-value combination will make text both italicized and bold?
- The default value of animation-timing-function is ______.
- How can you specify a fallback font if the primary font fails to load?