Guillermo Rodas
Google Developer Expert in Web Technologies, Community Organizer, and Online Teacher.
@garethderioth
Medellín, Aug 24, 2016
* https://www.w3.org/TR/CSS21/visuren.html#dis-pos-flo
window.getComputedStyle().
getComputedStyle() was historically defined to return the Computed value of an element or pseudo-element.
However, the concept of Computed value changed between revisions of CSS while the implementation of getComputedStyle() had to remain the same for compatibility with deployed scripts.
To address this issue this specification introduces the concept of a resolved value.
https://drafts.csswg.org/cssom/#resolved-values
If the property applies to the element or pseudo-element and the resolved value of the display property is not none, the resolved value is the used value. Otherwise the resolved value is the computed value.
https://www.w3.org/TR/CSS2/cascade.html
The final value of a property is the result of a four-step calculation:
The value is determined through specification (the "specified value"), then resolved into a value that is used for inheritance (the "computed value"), then converted into an absolute value if necessary (the "used value"), and finally transformed according to the limitations of the local environment (the "actual value").
(Diego Gutierrez).
By Guillermo Rodas
CSS values specification for a series of FE talks
Google Developer Expert in Web Technologies, Community Organizer, and Online Teacher.