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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *