Closed
Description
TypeScript Version: 2.1.5
Code
const el = document.createElement("div");
el.style.userSelect = "none"; // error here, property dont exist
Expected behavior:
since the user-select css property is now unprefixed, it would be good to be able to set it!
Actual behavior:
tsc compile error: error TS2339: Property 'userSelect' does not exist on type 'CSSStyleDeclaration'.
More
According to caniuse.com, unprefixed user-select is available in IE11, Edge, Chrome and Firefox