/** * Prevent adjustments of font size after orientation changes in IE and iOS. */html {-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}
The comment and rule above would be removed with the following browserslist:
last 2 chrome versions
The rule below would be more carefully altered:
/** * 1. Add the correct box sizing in Firefox. * 2. Show the overflow in Edge and IE. */hr {box-sizing:content-box; /* 1 */height:0; /* 1 */overflow:visible; /* 2 */}/* with a `last 2 firefox versions` browserslist becomes *//** * 1. Add the correct box sizing in Firefox. * 2. Show the overflow in Edge and IE. */hr {box-sizing:content-box; /* 1 */height:0; /* 1 */}
PostCSS Browser Comments can remove rules based upon the comment above them, or it can remove declarations using numbered comments that reference the rule above them. In the later case, when all of the numbered comments are removed, then the entire rule and comment are also removed.