Bootstrap: User-Select: all is not supported in IE or Edge Legacy

Created on 9 Nov 2020  路  10Comments  路  Source: twbs/bootstrap

The Text Selection .user-select-all is not supported in IE or Edge Legacy.
REF: https://caniuse.com/mdn-css_properties_user-select_all

Maybe it could mention this as a note on on the v4 docs?
https://getbootstrap.com/docs/4.5/utilities/interactions/#text-selection

The compiled CSS actually includes:

.user-select-all {
  -ms-user-select: all !important;

but it doesn't do anything. Not really a big deal since it'd make almost no difference to the file-size after gzip compression - but Can that be excluded from the CSS? Or would this be an issue with Autoprefixer?

build docs v4

Most helpful comment

Sounds good. Opened an issue upstream: https://github.com/postcss/autoprefixer/issues/1372

All 10 comments

You should definitely make an issue upstream (autoprefixer) regarding the CSS since that's handled automatically for us.

cool will do that re: autoprefixer.

Should I open a PR for the v4 docs to mention that it's not supported? Something like:

Note: user-select-all is not supported on Internet Explorer or Edge Legacy.

I'd wait a bit until the issue is solved because it could be something documented wrong. Please link to the upstream issue and let us know of the outcome and then we can proceed with a docs callout if needed.

Sounds good. Opened an issue upstream: https://github.com/postcss/autoprefixer/issues/1372

Neat! @ai has fixed it in Autoprefixer already and will release an update shortly!

@coliff feel free to send a PR adding a warning callout that this doesn't work on IE, otherwise we'll tackle it later. I still want to finish with the Hugo switch since that PR is touching almost all doc files.

Updated the deps in #32115 which takes case of one part of this issue. The callout is left; any PRs welcome.

cool - will open a PR for the docs within the hour.

What branch should the PR be made from - the v4-dev branch?

Fixed by #32151

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

cvrebert picture cvrebert  路  3Comments

devfrey picture devfrey  路  3Comments

fohlsom picture fohlsom  路  3Comments

steve-32a picture steve-32a  路  3Comments