github / user-select-contain-polyfill

Polyfills `user-select: contain` property value

Home Page:https://github.github.com/user-select-contain-polyfill/test.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Polyfills `user-select: contain` property value

https://github.github.com/user-select-contain-polyfill/test.html

License:MIT License


Languages

Language:JavaScript 76.3%Language:HTML 20.3%Language:CSS 3.4%