bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Switch to using range context queries

Open jcoyne opened this issue 1 year ago • 1 comments

Prerequisites

Proposal

Currently bootstrap uses queries like @media (max-width: 575.98px). It appears this was because range queries were not supported in the past:

https://github.com/twbs/bootstrap/blob/main/site/layouts/partials/callouts/info-mediaqueries-breakpoints.md?plain=1#L1

Motivation and context

All browsers now support range queries, so we don't need the confusion around "why did you subtract 0.02px?" See https://caniuse.com/css-media-range-syntax

This means we can just have:

@media (width < 576px)

jcoyne avatar Nov 21 '24 16:11 jcoyne

Based on https://caniuse.com/?search=range%20queries, it could be update only in v6 with https://github.com/twbs/bootstrap/pull/37309 (or other PR) to update our .browserlistrc

julien-deramond avatar Nov 22 '24 06:11 julien-deramond

Added in v6.

mdo avatar Oct 02 '25 22:10 mdo