Skip to content

Exclude Internet Explorer 11 min-width:10vmin / IE6-8 min-width:10rem #9

@WebMechanic

Description

@WebMechanic

This is another simple feature-ish media query to filter styles from specific versions of Internet Explorer.

  • vmin and vmax are not supported until IE11 inclusive
  • rem is not supported until IE8 inclusive

Any media query combination that involves (min-width:1vmin) or <link media="(min-width:1vmin)"> will prevent IE11 (all IE) from reading/loading the style(sheet). All relevant browsers released after 2013/2014{*} support this unit.
Likewise (min-width:1rem) will filter styles from IE6-8.

Useful in combination with other IE css filters that could involve EdgeHTML or Windows specific styling (e.g. forms).
Reminder: (-ms-high-contrast:none) will not be applied by Edge/18. Support for 'none' was dropped.

{*} according to caniuse, WebKit added support with Safari 7 in 2014, Samsung Internet 4 in 2016

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions