Polyfills user-select: contain property value
Перейти к файлу
Dusty Greif b3be69acc4
Merge pull request #12 from github/dg/maintenance
Actions Maintenance
2024-10-17 20:40:06 -04:00
.github/workflows Enable provenance when publishing 2024-10-17 08:59:32 -04:00
.gitignore Initial commit 2018-09-24 15:26:10 -07:00
LICENSE Initial commit 2018-09-24 15:26:10 -07:00
README.md Update README.md 2021-10-06 21:02:48 +00:00
package.json user-select-contain-polyfill 1.0.0 2018-09-25 09:31:08 -07:00
rollup.config.js Prettier 2018-09-25 09:24:56 -07:00
test.html Initial commit 2018-09-24 15:26:10 -07:00
user-select-contain.css Initial commit 2018-09-24 15:26:10 -07:00
user-select-contain.js Return early if selection type is not Range 2022-04-19 13:23:46 -06:00
user-select-contain.js.flow Initial commit 2018-09-24 15:26:10 -07:00
user-select-contain.mjs Update user-select-contain.mjs 2022-04-19 13:24:07 -06:00
user-select-contain.mjs.flow Initial commit 2018-09-24 15:26:10 -07:00

README.md

user-select: contain polyfill

Polyfills user-select: contain property value by implementing the behavior on a CSS class name user-select-contain.

This is only implemented in Internet Explorer right now.

Installation

$ npm install user-select-contain-polyfill

Usage

JS

import "user-select-contain-polyfill";

CSS

@import "user-select-contain-polyfill.css";

HTML

<span class="user-select-contain">
  50ce349853
</span>

Development

$ npm install
$ npm run build

License

Distributed under the MIT license. See LICENSE for details.