Pixel Pete saysgetComputedStyle reads the actual rendered value, including styles from stylesheets.
el.style only sees inline styles; to read the effective value (from CSS files, the cascade, defaults) use getComputedStyle(el).color. It returns resolved values (often in px/rgb). It's read-only and triggers layout, so don't call it in tight loops — cache the value you need.
Power-ups you unlock
getComputedStyle reads the rendered value
Sees stylesheet + cascade, not just inline
Returns resolved values (px, rgb)
Read-only; avoid in tight loops
Quirks Mode attacks — common mistakes
Reading el.style for a stylesheet-set value
Calling it repeatedly in loops (layout cost)
Expecting to write through it (it’s read-only)
Boss battleSet a color in CSS, then read it back with getComputedStyle (el.style would be empty).