실제값
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 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.
명세
명세 | 상태 | 설명 |
---|---|---|
CSS Level 2 (Revision 1) The definition of 'actual value' in that specification. |
Recommendation | 초기 정의. |
같이 보기
- CSS Key Concepts: CSS syntax, at-rule, comments, specificity and inheritance, the box, layout modes and visual formatting models, and margin collapsing, or the initial, computed, resolved, specified, used, and actual values. Definitions of value syntax, shorthand properties and replaced elements.