Compile Time Errors
Last updated
Last updated
Immutable styles ships with a friendly compiler that helps assist development, rather than bark at you. If the compiler finds an error, such as a CSS override the compilation process is terminated and an error is thrown. Each error is documented below including the problem code and the error thrown.
When an invalid attribute is used.
The ruleset above throws an "Invalid Attribute" compile time error:
When a CSS property is defined more than once in same block.
The ruleset above throws a "Duplicate Property" compile time error:
When one style overrides another style.
The rulesets above throws an "Override Found" compile time error:
When one style partially overrides another style.
The rulesets above throws a "Partial Override Found" compile time error:
When a media query is nested inside another media query.
The ruleset above throws a "Nested Media Query" compile time error:
When an inheritable property is used by an invalid element type.
The ruleset above throws a "Element Property Mismatch" compile time error:
See Strict Inheritance for more details.