Prev | Current Page 168 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


Compatibility
Opera Safari Firefox Internet Explorer
9.2 3.0 2.0 1.3 2.0 1.5 1.0 7.0 6.0 5.5
None Partial Partial Partial None None None None None None
Safari versions up to and including 3 don??™t support this pseudo-element in the case
of input and textarea elements.
Chapter 5
The Cascade, Specificity,
and Inheritance
Other than being the C in the acronym CSS, the fact that style sheets are described
as ???cascading??? is an important, if complex, part of the way styles are applied to the
elements in a document. It??™s called the CSS cascade (p. 118), because style
declarations cascade down to elements from many origins.
The cascade combines the importance, origin, specificity (p. 126), and source order
of the applicable style declarations to determine exactly??”and without
conflict??”which declaration should be applied to any given element.
Inheritance (p. 133) is the means by which, in the absence of any specific declarations
applied by the CSS cascade, a property value of an element is obtained from its
parent element.


Pages:
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180