concept
resolved-value — CSS reference
CSSOM defines resolved values for getComputedStyle(). For certain properties and box conditions these are used values, and for others computed values. The result is a serialized string, not an inspection of every CSS value-processing stage.
Formal Syntax & Structure
css syntaxcss
getComputedStyle(element).widthWorking Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#parent {width:300px} #a {width:40%;opacity:.6}</style><body><div id="parent"><div id="a">Sample</div><div id="b">Comparison</div></div></body></html>