4.3.2 Lengths

Chapter 4 - Syntax and basic data types - 4.3.2 Lengths

Go to the relevant page of the specification.

background-position-001 (ahem, image)
background-position - ex unit
ex unit is the 'x-height' of the relevant font. 'em' and 'ex' length values when defining 'font-size' property refer to the computed font size of the parent element.
background-position-002 (ahem, image)
background-position - ex unit
ex unit is the 'x-height' of the relevant font. 'em' and 'ex' length values when defining 'font-size' property refer to the computed font size of the parent element.
border-width-009 (invalid)
CSS Parsing: Negative Border Widths
border-width-010 (invalid)
CSS Parsing: Negative Border Widths
c547-indent-000 (ahem)
text-indent
c5506-padn-t-000 (ahem, invalid)
padding-top
c5509-padn-l-000 (ahem, image)
padding-left
c5510-padn-000 (ahem, image)
padding
c61-ex-len-000 (ahem)
Length Units
c61-rel-len-000 (ahem, image)
Length Units
font-size-123 (invalid)
CSS Parsing: Negative Font-Size
If a negative length value is set into a font-size declaration, then such declaration is ignored.
margin-em-inherit-001 (image)
inherit applied on margin set with em
The 'em' unit is equal to the computed value of the 'font-size' property of the element on which it is used. When inherit keyword is used, the property takes the same computed value - a length value in this testcase - as the property for the element's parent.
numbers-units-005
Optional unit identifier after 0
After a zero length, the unit identifier is not necessary.
numbers-units-006 (invalid)
Unsupported negative values
If a negative length value is set on a property that does not allow negative length values, the declaration is ignored.
numbers-units-007 (ahem)
Em sizes
The 'em' unit is equal to the computed value of the 'font-size' property (default) of the element on which it is used.
numbers-units-009 (ahem)
Em size with the font-size set to px size
The 'em' unit is equal to the computed value of the 'font-size' property (pixels) of the element on which it is used.
numbers-units-010 (ahem)
Em size with font-size set to inch
The 'em' unit is equal to the computed value of the 'font-size' property (inches) of the element on which it is used.
numbers-units-011 (ahem)
Em size with font-size set to em
When 'em' is assigned in the value of the 'font-size' property itself, it uses the font size of the parent element.
numbers-units-012 (ahem)
Em size with font-size set to ex
The 'em' unit is equal to the computed value of the 'font-size' property (ex) of the element on which it is used.
numbers-units-013 (ahem)
Em size with font-size set to percentage
The 'em' unit is equal to the computed value of the 'font-size' property of the element on which it is used.
numbers-units-015 (ahem, should)
Height of EX
In the cases where it is impossible or impractical to determine the x-height, a value of 0.5em should be used.
numbers-units-018 (ahem)
Specifying em/ex on the root element
Units 'em' and 'ex' refer to the initial value of the property when specified on the root element of a document.
numbers-units-019 (ahem)
First available font defines the 'ex' unit size
The 'ex' unit size is defined by the element's first available font.
numbers-units-021 (96dpi, ahem)
Root element and the 'em' unit size
The 'em' unit refers to the property's initial value when specified on the root element.
padding-009 (invalid)
CSS Parsing: Negative Padding
padding-em-inherit-001 (image)
inherit applied on padding set with em
The 'em' unit is equal to the computed value of the 'font-size' property of the element on which it is used. When inherit keyword is used, the property takes the same computed value - a length value in this testcase - as the property for the element's parent.
position-absolute-percentage-inherit-001
position absolute - dimensions and position given by offset percentages and inherit
Absolutely positioned boxes can be dimensioned and positioned solely by setting offset 'top', 'right', 'bottom' and 'left' property values with percentage unit and then with inherit keyword. 'inherit' on a offset property makes such offset property take the same computed value as the offset property of the nearest positioned ancestor; in the case of a percentage value, the computed value is the specified percentage value of such nearest positioned ancestor.
units-001 (ahem)
Units: Equivalence
units-002 (ahem)
Units: ex
units-003 (ahem)
Units: ex
units-004 (ahem)
Units: ex
units-005
Units: em (0.87em floats)
units-006 (ahem)
Units: px and font-size
units-008 (ahem)
Units: px and inherited font-size
units-009 (ahem)
Units: px and dependent font-size