Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 2 additions & 61 deletions experimental/css-has-pseudo/.tape.mjs
Original file line number Diff line number Diff line change
@@ -1,68 +1,9 @@
import postcssTape from '../../packages/postcss-tape/dist/index.mjs';
import plugin from '@csstools/css-has-pseudo-experimental';
import postcssLogical from 'postcss-logical';
import postcssNesting from 'postcss-nesting';
import postcssDirPseudoClass from 'postcss-dir-pseudo-class';

postcssTape(plugin)({
'basic': {
message: 'supports basic usage'
message: 'supports basic usage',
warnings: 1
},
'basic:preserve': {
message: 'supports { preserve: false } usage',
options: {
preserve: false
}
},
'basic:specificity-matching-name': {
message: 'supports { specificityMatchingName: "other-thing-that-does-not-exist" } usage',
options: {
specificityMatchingName: 'other-thing-that-does-not-exist'
}
},
'generated-selector-cases': {
message: 'correctly handles generated cases',
warnings: 1,
options: {
preserve: false
}
},
'browser': {
message: 'prepare CSS for chrome test',
options: {
preserve: false
}
},
'plugin-order-logical:before': {
message: 'works with other plugins that modify selectors',
plugins: [postcssLogical({preserve: false}), postcssDirPseudoClass({preserve: false}), plugin({preserve: false})],
},
'plugin-order-logical:after': {
message: 'works with other plugins that modify selectors',
plugins: [plugin({ preserve: false }), postcssLogical({ preserve: false }), postcssDirPseudoClass({ preserve: false })],
},
'plugin-order-logical:before:preserve': {
message: 'works with other plugins that modify selectors',
plugins: [postcssLogical({preserve: true}), postcssDirPseudoClass({preserve: true}), plugin({preserve: true})],
},
'plugin-order-logical:after:preserve': {
message: 'works with other plugins that modify selectors',
plugins: [plugin({ preserve: true }), postcssLogical({ preserve: true }), postcssDirPseudoClass({ preserve: true })],
},
'plugin-order-nesting:before': {
message: 'works with other plugins that modify selectors',
plugins: [postcssNesting({preserve: false}), plugin({preserve: false})],
},
'plugin-order-nesting:after': {
message: 'works with other plugins that modify selectors',
plugins: [postcssNesting({preserve: false}), plugin({preserve: false})],
},
'plugin-order-nesting:before:preserve': {
message: 'works with other plugins that modify selectors',
plugins: [plugin({preserve: true}), postcssNesting({preserve: true})],
},
'plugin-order-nesting:after:preserve': {
message: 'works with other plugins that modify selectors',
plugins: [plugin({preserve: true}), postcssNesting({preserve: true})],
}
});
7 changes: 7 additions & 0 deletions experimental/css-has-pseudo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changes to CSS Has Pseudo

### Unreleased

- `@csstools/css-has-pseudo-experimental` is no longer supported. Please use `css-has-pseudo` instead.
All issues have been resolved in the main plugin and the experimental plugin is no longer maintained.

⚠️ This experimental plugin no longer has any effect on the output of your CSS.

### 0.5.2 (June 4, 2022)

- Update `@csstools/selector-specificity` (major)
Expand Down
165 changes: 0 additions & 165 deletions experimental/css-has-pseudo/INSTALL-POSTCSS.md

This file was deleted.

Loading