Update browsers-devices.mdx

This commit is contained in:
Mark Otto 2025-04-22 19:57:25 -07:00 committed by GitHub
parent 1bbccc3fe8
commit 5583507b93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 33 deletions

View File

@ -6,45 +6,21 @@ toc: true
## Supported browsers
Bootstrap supports the **latest, stable releases** of all major browsers and platforms.
Alternative browsers which use the latest version of WebKit, Blink, or Gecko, whether directly or via the platforms web view API, are not explicitly supported. However, Bootstrap should (in most cases) display and function correctly in these browsers as well. More specific support information is provided below.
You can find our supported range of browsers and their versions [in our `.browserslistrc file`]([[config:repo]]/blob/v[[config:current_version]]/.browserslistrc):
Bootstrap supports the latest, stable releases of all major browsers and platforms. We use a [Browserslist](https://github.com/browserslist/browserslist) configuration file in the root of our project called [`.browserslistrc`]([[config:repo]]/blob/v[[config:current_version]]/.browserslistrc) to explicitly declare our browser and platform compatibility. This combines with [Autoprefixer](https://github.com/postcss/autoprefixer) to generate prefixed CSS properties for browsers as needed.
<Code lang="plaintext" filePath=".browserslistrc" />
We use [Autoprefixer](https://github.com/postcss/autoprefixer) to handle intended browser support via CSS prefixes, which uses [Browserslist](https://github.com/browserslist/browserslist) to manage these browser versions. Consult their documentation for how to integrate these tools into your projects.
See the full audience coverage and a more [detailed compatibility report at Browsersl.ist](https://browsersl.ist/#q=%3E%3D+0.5%25%0Alast+2+major+versions%0Anot+dead%0AChrome+%3E%3D+105%0AFirefox+%3E%3D+121%0AiOS+%3E%3D+15.4%0ASafari+%3E%3D+15.4%0Anot+Explorer+%3C%3D+11%0Anot+kaios+%3C%3D+2.5).
Alternative browsers which use the latest version of WebKit, Blink, or Gecko, whether directly or via the platforms web view API, are not explicitly supported. However, Bootstrap should (in most cases) display and function correctly in these browsers as well.
### Mobile devices
Generally speaking, Bootstrap supports the latest versions of each major platforms default browsers. Note that proxy browsers (such as Opera Mini, Opera Mobiles Turbo mode, UC Browser Mini, Amazon Silk) are not supported.
<BsTable class="table">
| | Chrome | Firefox | Safari | Android Browser &amp; WebView |
| --- | --- | --- | --- | --- |
| **Android** | Supported | Supported | <span class="text-body-secondary">&mdash;</span> | v6.0+ |
| **iOS** | Supported | Supported | Supported | <span class="text-body-secondary">&mdash;</span> |
</BsTable>
### Desktop browsers
Similarly, the latest versions of most desktop browsers are supported.
<BsTable class="table">
| | Chrome | Firefox | Microsoft Edge | Opera | Safari |
| --- | --- | --- | --- | --- | --- |
| **Mac** | Supported | Supported | Supported | Supported | Supported |
| **Windows** | Supported | Supported | Supported | Supported | <span class="text-body-secondary">&mdash;</span> |
</BsTable>
For Firefox, in addition to the latest normal stable release, we also support the latest [Extended Support Release (ESR)](https://www.mozilla.org/en-US/firefox/enterprise/) version of Firefox.
Unofficially, Bootstrap should look and behave well enough in Chromium and Chrome for Linux, and Firefox for Linux, though they are not officially supported.
## Internet Explorer
Internet Explorer is not supported. **If you require Internet Explorer support, please use Bootstrap v4.**
Similarly, the latest versions of most desktop browsers are supported. Unofficially, Bootstrap should look and behave well enough in Chromium and Chrome for Linux, and Firefox for Linux, though they are not officially supported. Internet Explorer is not supported.
## Modals and dropdowns on mobile
@ -66,8 +42,6 @@ Page zooming inevitably presents rendering artifacts in some components, both in
## Validators
In order to provide the best possible experience to old and buggy browsers, Bootstrap uses [CSS browser hacks](http://browserhacks.com/) in several places to target special CSS to certain browser versions in order to work around bugs in the browsers themselves. These hacks understandably cause CSS validators to complain that they are invalid. In a couple places, we also use bleeding-edge CSS features that arent yet fully standardized, but these are used purely for progressive enhancement.
Bootstrap uses some browser-specific selectors to provide progressive enhancements and reset some styles across browsers. These may not always pass CSS validators, but they still have a place in real world applications. These validation warnings dont matter in practice as they dont interfere with the proper functioning of our styles, and we deliberately ignore these particular warnings.
These validation warnings dont matter in practice since the non-hacky portion of our CSS does fully validate and the hacky portions dont interfere with the proper functioning of the non-hacky portion, hence why we deliberately ignore these particular warnings.
Our HTML docs likewise have some trivial and inconsequential HTML validation warnings due to our inclusion of a workaround for [a certain Firefox bug](https://bugzilla.mozilla.org/show_bug.cgi?id=654072).
Likewise, our HTML has some trivial and inconsequential HTML validation warnings. Some of these are also surpressed by our own local configuration and can be ignored.