diff --git a/lib/hacks/user-select.js b/lib/hacks/user-select.js index 850f9816c..f73831d2a 100644 --- a/lib/hacks/user-select.js +++ b/lib/hacks/user-select.js @@ -7,6 +7,11 @@ class UserSelect extends Declaration { insert(decl, prefix, prefixes) { if (decl.value === 'all' && prefix === '-ms-') { return undefined + } else if ( + decl.value === 'contain' && + (prefix === '-moz-' || prefix === '-webkit-') + ) { + return undefined } else { return super.insert(decl, prefix, prefixes) } diff --git a/test/cases/user-select.out.css b/test/cases/user-select.out.css index d4e815e1a..d7dd4d27f 100644 --- a/test/cases/user-select.out.css +++ b/test/cases/user-select.out.css @@ -5,9 +5,8 @@ a { } b { - -webkit-user-select: contain; - -ms-user-select: element; - user-select: contain; + -ms-user-select: element; + user-select: contain; } .all {