New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow extend to work across media directives when the queries are compatible. #501
Comments
I'm not sure we want to perform the operation for this query in particular, since that requires knowledge of the semantics of |
Call the the value of the first media query x (500) and the value of the second y (400). It's easy enough to do some simple logic based on the prefixes. min = x > y You don't really need to care out the property. |
Yep, @nathggns is right, the semantics of min/max are standardized in media queries -- this can be done safely. |
I'm uncomfortable with the general principle of that level of semantic knowledge about the specific media queries. Understanding that |
You don't need to understand what min-width means, as I just explained. Nathaniel Higgins On Friday, 24 August 2012 at 22:45, Nathan Weizenbaum wrote:
|
I'm not uncomfortable with this. Min and max have well established meanings in the spec -- independent of the property names they are attached to. |
Oh, I see, I misunderstood. That does make it better. |
Consider:
This will generate a deprecation warning. But in all cases where
.foo
is defined, the media query it is in is a propery subset of the media query where.bar
is defined. So this it is safe for sass to perform this operation.The text was updated successfully, but these errors were encountered: