https://github.com/github/user-select-contain-polyfill
Polyfills `user-select: contain` property value
https://github.com/github/user-select-contain-polyfill
keep
Last synced: 5 months ago
JSON representation
Polyfills `user-select: contain` property value
- Host: GitHub
- URL: https://github.com/github/user-select-contain-polyfill
- Owner: github
- License: mit
- Archived: true
- Created: 2018-09-24T21:53:52.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-10-18T00:40:06.000Z (over 1 year ago)
- Last Synced: 2024-12-17T02:25:10.649Z (about 1 year ago)
- Topics: keep
- Language: JavaScript
- Homepage: https://github.github.com/user-select-contain-polyfill/test.html
- Size: 21.5 KB
- Stars: 22
- Watchers: 5
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# user-select: contain polyfill
Polyfills [`user-select: contain`](https://developer.mozilla.org/en-US/docs/Web/CSS/user-select) property value by implementing the behavior on a CSS class name `user-select-contain`.
This is only implemented in Internet Explorer right now.
- [CSS Basic User Interface Module Level 4](https://drafts.csswg.org/css-ui-4/#propdef-user-select)
- [Firefox bug](https://bugzilla.mozilla.org/show_bug.cgi?id=1036853)
- [Chrome bug](https://bugs.chromium.org/p/chromium/issues/detail?id=658129)
- [`wpt.fyi`](https://wpt.fyi/results/css/css-ui/parsing/user-select-valid.html?label=master&label=experimental&aligned&q=user-select)
## Installation
```sh
$ npm install user-select-contain-polyfill
```
## Usage
### JS
```js
import "user-select-contain-polyfill";
```
### CSS
```css
@import "user-select-contain-polyfill.css";
```
### HTML
```html
50ce349853
```
## Development
```sh
$ npm install
$ npm run build
```
## License
Distributed under the MIT license. See LICENSE for details.