swc/crates/swc_css_minifier/tests/fixture/compress-declaration/duplication/input.css
Alexander Akait dd7280d5bd
fix(css/minifier): Don't remove custom variables with different case (#6655)
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-12-15 08:31:43 +00:00

126 lines
1.6 KiB
CSS

a {
color: red;
color: red;
.class {
color: red;
color: red;
}
@media screen and (min-width: 100px) {
color: red;
color: red;
}
@supports (display: flex) {
color: red;
color: red;
.other {
color: red;
color: red;
}
}
.case-insensitivity {
color: red;
COLOR: red;
}
}
.font {
> h1 { font-weight: bold }
> h1 { font-weight: 700 }
}
.class {
> h1 { font-weight: bold }
> h1 { font-weight: bold }
}
.other {
> h1 { font-weight: 700 }
> h1 { font-weight: 700 }
}
.base {
color: red;
.class {
color: red;
}
.class-other {
color: red;
}
@media screen {
.class {
color: red;
}
.class-other {
color: red;
}
}
}
h1{/*test*/font-weight:bold}
h1{/*test*/font-weight:bold}
.white {
_color:white;
color:white
}
h1,h2{font-weight:bold}
h2,h1{font-weight:bold}
.margin{margin:10px 0 10px 0;margin:10px 0}
h1{font-weight:bold;font-weight:bold}
h1{font-weight:bold}
@media print{
h1 {
display:block
}
}
@media print{
h1 {
display:block
}
}
.other {
& h1 { font-weight: bold }
& h1 { font-weight: bold }
}
@media print{
h1, h2 {
font-weight:bold
}
h2, h1{
font-weight:bold
}
}
:root {
--color: red;
--color: red;
--Color: red;
}
.class {
--color: red;
--color: red;
--Color: red;
.nested {
--color: red;
--color: red;
--Color: red;
}
}