Computed value

noun

say it: “kum-PYOO-tid VAL-yoo” /kəmˈpjuːtɪd ˈvæljuː/

The value the browser works out for a CSS property after the cascade picks a winner and units like em are turned into pixels. It's what DevTools shows on its Computed tab.

What is a computed value?

The computed value is the specified value with the easy math done, like em turned into pixels. This is what children inherit.

body { font-size: 16px; }
.note { font-size: 1.5em; }   /* computed: 24px */

In a sentence

  • “The computed value showed the menu's color was coming from a rule I had forgotten about.”
  • “I wrote font-size: 1.5em, but the computed value in DevTools said 24px.”

Level: Master · More CSS terms at this level

Updated