-
Notifications
You must be signed in to change notification settings - Fork 687
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
[mediaqueries-4] min-width / max-width / min-height / max-height and fractional viewport dimensions #984
Comments
alternatively, for backwards-compatibility with existing content, perhaps having a new modifier for the value part to indicate it's "excluding", thus allowing authors to choose which one they want to make "excluding" (assuming browsers would then infer the rest from context, i.e. if it's used for a Spitballing, based on mathematical notation for intervals, maybe the |
The I’ve filed a feature request for Firefox. |
As https://drafts.csswg.org/mediaqueries/#mq-range-context would cover the problem of fractional viewport dimensions, is it worth adding a note (or series of notes) in the spec to point out that:
If yes, happy to have a stab at this, just let me know @frivoal @tabatkins |
Closes w3c#984 Additionally, wraps `<div class="note">` around the note in range context prose.
Closes w3c#984 Additionally, wraps `<div class="note">` around the note in range context prose.
Currently,
min-
andmax-
prefixes are equivalent to>=
and<=
(see https://drafts.csswg.org/mediaqueries-4/#mq-min-max)This is fine under the assumption that the width/height of the viewport will always be integers, but will fall apart in the case of fractional dimensions (admittedly an edge case?) - see for instance twbs/bootstrap#21552
Wondering if it would be possible to change these so that one of them is "including", while the other is "excluding". For instance, changing the definition to make
min-
equivalent to>=
butmax-
equivalent to<
only?The text was updated successfully, but these errors were encountered: