Repaint

noun

say it: “REE-paynt” /ˈriːpeɪnt/

The browser redrawing the pixels of something whose look changed, like its color or shadow, without anything changing size or moving.

What is a repaint?

A repaint is the browser redrawing pixels after something's look changes, like a color, without any size change.

.button:hover { background: navy; }   /* a repaint, no reflow */

In a sentence

  • “Turning the button navy on hover only needs a repaint, so it's cheap for the browser.”
  • “DevTools flashed green over the card to show a repaint each time its shadow changed.”

Level: Master · More CSS terms at this level

Updated