Skip to content
Polyfills `user-select: contain` property value
JavaScript HTML CSS
Branch: master
Clone or download

Latest commit

Latest commit 175aa4c Mar 30, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Sep 24, 2018
LICENSE Initial commit Sep 24, 2018
README.md
package.json user-select-contain-polyfill 1.0.0 Sep 25, 2018
rollup.config.js Prettier Sep 25, 2018
test.html Initial commit Sep 24, 2018
user-select-contain.css Initial commit Sep 24, 2018
user-select-contain.js Prettier Sep 25, 2018
user-select-contain.js.flow Initial commit Sep 24, 2018
user-select-contain.mjs Prettier Sep 25, 2018
user-select-contain.mjs.flow Initial commit Sep 24, 2018

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 IE and Edge (under element) 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.

You can’t perform that action at this time.