ant-design / cssinjs

https://ant-design.github.io/cssinjs
MIT License
236 stars 59 forks source link

feat: support not selector #75

Closed zombieJ closed 1 year ago

zombieJ commented 1 year ago

ref https://github.com/ant-design/ant-design/issues/39979

github-actions[bot] commented 1 year ago

😭 Deploy PR Preview bd1cb34bc207c23df10c6509159750b091ce581d failed. Build logs

🤖 By surge-preview

codecov-commenter commented 1 year ago

Codecov Report

Base: 91.92% // Head: 92.26% // Increases project coverage by +0.34% :tada:

Coverage data is based on head (bd1cb34) compared to base (88e99a8). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #75 +/- ## ========================================== + Coverage 91.92% 92.26% +0.34% ========================================== Files 16 18 +2 Lines 557 582 +25 Branches 188 193 +5 ========================================== + Hits 512 537 +25 Misses 45 45 ``` | [Impacted Files](https://codecov.io/gh/ant-design/cssinjs/pull/75?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design) | Coverage Δ | | |---|---|---| | [src/transformers/legacyNotSelector.ts](https://codecov.io/gh/ant-design/cssinjs/pull/75?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design#diff-c3JjL3RyYW5zZm9ybWVycy9sZWdhY3lOb3RTZWxlY3Rvci50cw==) | `100.00% <100.00%> (ø)` | | | [src/util.ts](https://codecov.io/gh/ant-design/cssinjs/pull/75?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design#diff-c3JjL3V0aWwudHM=) | `42.50% <100.00%> (+3.02%)` | :arrow_up: | | [tests/util.ts](https://codecov.io/gh/ant-design/cssinjs/pull/75?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design#diff-dGVzdHMvdXRpbC50cw==) | `100.00% <0.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

zombieJ commented 1 year ago

not 拆分这样是不等价的:

.a:not(.a.b) {
}

不能等于:

.a:not(.a):not(.b) {
}