8.2 Attribute References: attr()

Chapter 8 - Functional Notations - 8.2 Attribute References: attr()

Go to the relevant page of the specification.

attr-color-invalid-cast
Attribute references (colors)
Invalid color values in referenced attributes are replaced by the fallback value
attr-color-invalid-fallback
Attribute references (colors)
When the fallback value of an attr() function is invalid, the delcaration is ignored.
attr-color-valid
Attribute references (colors)
The value of the reference attribute is used correctly in the layout when it's a color.
attr-invalid-type-001
Attribute references (types)
When the type of an att() function is known and unexpected, the declaration is ingored
attr-invalid-type-002
Attribute references (types)
When the type of an att() function is known and unexpected, the declaration is ignored
attr-invalid-type-003
Attribute references (types)
When the type of an att() function is known and unexpected, the declaration is ignored
attr-length-invalid-cast
Attribute references (length)
When the value of referenced attribute isn't a valid length, the fallback value is unsed instead.
attr-length-invalid-fallback
Attribute references (length)
When the attr() fallback is an invalid length, the delcaration is correctly ignored.
attr-length-valid
Attribute references (length)
The value of referenced attribute is used correctly as a length.
attr-length-valid-zero
Attribute references (length)
The value of referenced attribute is used correctly as a length (even if it's 0).
attr-length-valid-zero-nofallback
Attribute references (length)
The value of referenced attribute is used correctly as a length (even if it's 0).
attr-px-invalid-cast
Attributes references (pixels)
When the value of the referenced attribute is not a pixel value, the fallback value is used instead.
attr-px-invalid-fallback
Attribute references (pixels)
When the fallback of a pixel attribute reference is invalid, the declaration is ignored.
attr-px-valid
Attribute references (pixels)
Attribute references for pixel values are replaced correctly at computed time.
initial-background-color
Initial property and background-color
The initial keyword is supported on background-color.