Skip to content

Commit

Permalink
fix: transpile not, matches, has & custom selectors
Browse files Browse the repository at this point in the history
These are notsupported on outdated Android emulator browsers.
  • Loading branch information
buschtoens committed Jul 30, 2021
1 parent 1e92d8b commit d777e1a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions lib/clark-plugin.js
Expand Up @@ -79,7 +79,7 @@ module.exports = class ClarkPlugin extends Plugin {
browsers: this.browsers,

// https://cssdb.org/
stage: 4,
stage: 3,

// Disable `preserve` so that the resulting CSS is consistent among all
// browsers, diminishing the probability of discovering bugs only when
Expand All @@ -91,7 +91,16 @@ module.exports = class ClarkPlugin extends Plugin {
'custom-properties': true,
'custom-media-queries': true,
'nesting-rules': true,
'pseudo-class-any-link': true
'pseudo-class-any-link': true,

// These are mostly due to terribly outdated Chrome versions in the
// Android emulator or super-low-end devices.
// @TODO Remove or `preserve`, once Android emulators caught up.
'not-pseudo-class': true,
'matches-pseudo-class': true,
'has-pseudo-class': true,

'custom-selectors': true
},

autoprefixer: {
Expand Down

0 comments on commit d777e1a

Please sign in to comment.