Skip to content

Commit

Permalink
[css-when-else] wordsmith
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Sep 14, 2018
1 parent a4e8f48 commit 3ba248c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions css-when-else/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,16 @@ Chained Conditionals: the ''@else'' rule {#else-rule}
=====================================================

Usually, <a>conditional group rules</a> are independent;
each one has a separate condition,
each one has a separate condition
evaluated without direct reference to any other rule,
and decides whether or not to apply their contained rules
based solely on their condition.
and decides whether or not to apply its contained rules
based solely on its condition.

This is fine for simple conditions,
but makes it difficult to write a collection of conditionals that are meant to be mutually exclusive;
authors have to very carefully craft their conditions to not activate when the other rules are meant to,
and make sure the collection of conditionals don't accidentally <em>all</em> exclude some situation.
and make sure the collection of conditionals don't accidentally <em>all</em> exclude some situation
which is then left unstyled.

The <dfn>@else</dfn> rule is a <a>conditional group rule</a>
used to form <a>conditional rule chains</a>,
Expand Down

0 comments on commit 3ba248c

Please sign in to comment.