From 90c319ec2e1cf59447fbb738a0305ebc6cfb8b8f Mon Sep 17 00:00:00 2001 From: Rami Yushuvaev Date: Fri, 20 Nov 2020 00:35:01 +0200 Subject: [PATCH] Support more pseudo-elements Based on: https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements I add non experimental elements --- index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index bb7e64c..7aef6d2 100644 --- a/index.js +++ b/index.js @@ -8,8 +8,12 @@ module.exports = postcss.plugin( 'postcss-pseudo-elements', ( options ) => { selectors = options.selectors || [ 'before', 'after', + 'cue', + 'cue-region', 'first-letter', - 'first-line' + 'first-line', + 'file-selector-button', + 'selection' ], notationOption = options['colon-notation'] || 'double', notation = notationOption === 'double' ? '::' : ':', @@ -20,4 +24,4 @@ module.exports = postcss.plugin( 'postcss-pseudo-elements', ( options ) => { rule.selector = rule.selector.replace( replacements, notation + '$1' ); }); } -}); \ No newline at end of file +});