Cascading and inheritance

Back to the index.

CSS3 cascading and inheritance specification.

This module contains a few specialized keywords to control CSS’s cascading and inheritance. Some of them, like @import and the inherit value, have been around for a long time. Others are new.

This is the mobile table. See also the desktop table.

Last major update on 24 September 2014.

I'm writing a CSS book.

No UC Mini tests; turns out I’d have to rewrite all the tests specifically for that beastly browser.

[an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive]
To import another style sheet Yes Yes Yes Yes Yes Yes - Yes Yes
To apply styles to part of the document No No Yes No Yes No No - No Yes No Yes
Increases the specificity of a style rule. Yes Yes Yes Yes Yes Yes - Yes Yes
Targets all CSS properties. Only the inherit, initial, and unset values are allowed. No No No Yes No No No - No No Yes
Yes Yes Yes Yes Yes Yes - Yes Yes
The initial value as specified in the CSS spec Yes Yes Yes Yes Yes No - No Yes No Yes
Sets the value to inherit if that’s the default; to initial otherwise No No No Minimal No No No - No No Yes
  • Blink-based browsers support it only on the all declaration; not on just any declaration.

Browsers

[an error occurred while processing this directive]