Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this adds style "depth" to the precedence system use by restyle. deeper styles, e.g. media queries, will have higher precedence than shallower styles. The deeper the style is nested, the higher its precedence.
rsl, rsm, and rsh are where are base styles would go:
styles nested one level deep go into layers rsl1, rsm1, and rsh1
more levels are created as needed. for example, this class would go into rsl2
this has the added benefit of reducing the impact of property order. for example, this element would previously have always been green due to class ordering:
using this depth-based system the nested media query always takes higher precedence regardless of property order
using precedence layers like this would let react handle the orchestration of classes in a way that retains their priority, while also clarifying how restyle handles multiple conflicting styles - "deeper styles win"
fixes #23