Commit e3583115 authored by Mark Otto's avatar Mark Otto
Browse files

Clarify media query using .02px and bump from callout to warning

parent 5f932ff7
2 merge requests!31948Examples/Floating-labels: fix bad behavior with autofill,!30354v5: Add new `xxl` grid tier and move ToC to a sidebar
Showing with 2 additions and 2 deletions
+2 -2
......@@ -173,7 +173,7 @@ These mixins take those declared breakpoints, subtract `.02px` from them, and us
// No media query since the xxl breakpoint has no upper bound on its width
{{< /highlight >}}
{{< callout info >}}
{{< callout warning >}}
{{< partial "callout-info-mediaqueries-breakpoints.md" >}}
{{< /callout >}}
......
Note that since browsers do not currently support [range context queries](https://www.w3.org/TR/mediaqueries-4/#range-context), we work around the limitations of [`min-` and `max-` prefixes](https://www.w3.org/TR/mediaqueries-4/#mq-min-max) and viewports with fractional widths (which can occur under certain conditions on high-dpi devices, for instance) by using values with higher precision for these comparisons.
**Why subtract .02px?** Browsers don't currently support [range context queries](https://www.w3.org/TR/mediaqueries-4/#range-context), so we work around the limitations of [`min-` and `max-` prefixes](https://www.w3.org/TR/mediaqueries-4/#mq-min-max) and viewports with fractional widths (which can occur under certain conditions on high-dpi devices, for instance) by using values with higher precision.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment