실제값
CSS 속성의 실제값은 모든 근사치(approximation)가 적용된 뒤의 사용값입니다. 예를 들어, 사용자 에이전트는 오직 정수 픽셀값으로 테두리(border)를 렌더링할 수도 있고 테두리의 계산된 폭(width)에 근접하도록 강제할 지도 모릅니다.
Calculating a property's actual value
The user agent performs four steps to calculate a property's actual (final) value:
- First, the specified value (en-US) is determined based on the result of cascading, inheritance, or using the initial value.
- Next, the computed value is calculated according to the specification (for example, a
span
withposition: absolute
will have its computeddisplay
changed toblock
). - Then, layout is calculated, resulting in the used value.
- Finally, the used value is transformed according to the limitations of the local environment, resulting in the actual value.
명세
Specification |
---|
Cascading Style Sheets Level 2 Revision 2 (CSS 2.2) Specification # actual-value |