diff --git a/crates/swc_css_codegen/tests/fixture/values/color/hex-color/input.css b/crates/swc_css_codegen/tests/fixture/values/color/hex-color/input.css index f93b48d988c..0bf0d3e32cd 100644 --- a/crates/swc_css_codegen/tests/fixture/values/color/hex-color/input.css +++ b/crates/swc_css_codegen/tests/fixture/values/color/hex-color/input.css @@ -23,3 +23,8 @@ div { .foo { border: thick double #32a1ce; } + +.bar { + color: #123abcFF; + color: #123F; +} \ No newline at end of file diff --git a/crates/swc_css_codegen/tests/fixture/values/color/hex-color/output.css b/crates/swc_css_codegen/tests/fixture/values/color/hex-color/output.css index 142647a1b5e..640ab64953a 100644 --- a/crates/swc_css_codegen/tests/fixture/values/color/hex-color/output.css +++ b/crates/swc_css_codegen/tests/fixture/values/color/hex-color/output.css @@ -21,3 +21,7 @@ div { .foo { border: thick double #32a1ce; } +.bar { + color: #123abcFF; + color: #123F; +} diff --git a/crates/swc_css_codegen/tests/fixture/values/color/hex-color/output.min.css b/crates/swc_css_codegen/tests/fixture/values/color/hex-color/output.min.css index e04e999e295..381432f81ad 100644 --- a/crates/swc_css_codegen/tests/fixture/values/color/hex-color/output.min.css +++ b/crates/swc_css_codegen/tests/fixture/values/color/hex-color/output.min.css @@ -1 +1 @@ -div{color:#fff;color:#fff;color:#fff;color:#fff;color:#dc143c;color:#f00;color:#f00;color:#f09;color:#f09;color:#0f38;color:#0f38;color:#0a0a0a;color:#0a0a0afa}div{background:url("starsolid.gif")#99f repeat-y fixed;background:url("starsolid.gif")repeat-y fixed#99f;background:url("starsolid.gif")repeat-y 12#99f}.foo{border:thick double#32a1ce} +div{color:#fff;color:#fff;color:#fff;color:#fff;color:#dc143c;color:#f00;color:#f00;color:#f09;color:#f09;color:#0f38;color:#0f38;color:#0a0a0a;color:#0a0a0afa}div{background:url("starsolid.gif")#99f repeat-y fixed;background:url("starsolid.gif")repeat-y fixed#99f;background:url("starsolid.gif")repeat-y 12#99f}.foo{border:thick double#32a1ce}.bar{color:#123abcff;color:#123f} diff --git a/crates/swc_css_compat/src/compiler/color_hex_alpha.rs b/crates/swc_css_compat/src/compiler/color_hex_alpha.rs index de85a51c88c..aa313e3eee2 100644 --- a/crates/swc_css_compat/src/compiler/color_hex_alpha.rs +++ b/crates/swc_css_compat/src/compiler/color_hex_alpha.rs @@ -28,12 +28,9 @@ fn shorten_hex_color(value: &str) -> Option<&str> { let length = value.len(); let chars = value.as_bytes(); - if length == 8 - && (chars[6] == b'f' || chars[6] == b'F') - && (chars[7] == b'f' || chars[7] == b'F') - { + if length == 8 && chars[6] == b'f' && chars[7] == b'f' { return Some(&value[0..6]); - } else if length == 4 && chars[3] == b'f' || chars[3] == b'F' { + } else if length == 4 && chars[3] == b'f' { return Some(&value[0..3]); } diff --git a/crates/swc_css_compat/tests/color-hex-alpha/input.expect.css b/crates/swc_css_compat/tests/color-hex-alpha/input.expect.css index 777680c05db..ce45e740254 100644 --- a/crates/swc_css_compat/tests/color-hex-alpha/input.expect.css +++ b/crates/swc_css_compat/tests/color-hex-alpha/input.expect.css @@ -3,7 +3,7 @@ body { color: red; color: #f00; color: #f00; - color: #FC0; + color: #fc0; color: #0000ff; color: rgba(0, 0, 255, 0); color: #FFFFFF; diff --git a/crates/swc_css_lints/tests/rules/fail/color-hex-length/long/output.swc-stderr b/crates/swc_css_lints/tests/rules/fail/color-hex-length/long/output.swc-stderr index 5804d42edbc..4c30ce05bf6 100644 --- a/crates/swc_css_lints/tests/rules/fail/color-hex-length/long/output.swc-stderr +++ b/crates/swc_css_lints/tests/rules/fail/color-hex-length/long/output.swc-stderr @@ -1,5 +1,5 @@ - x Hex color value '#FFF' should be written into: '#FFFFFF'. + x Hex color value '#fff' should be written into: '#ffffff'. ,-[$DIR/tests/rules/fail/color-hex-length/long/input.css:1:1] 1 | a { 2 | color: #FFF; diff --git a/crates/swc_css_lints/tests/rules/fail/color-hex-length/short/output.swc-stderr b/crates/swc_css_lints/tests/rules/fail/color-hex-length/short/output.swc-stderr index a38e684fc91..e9eaf62194f 100644 --- a/crates/swc_css_lints/tests/rules/fail/color-hex-length/short/output.swc-stderr +++ b/crates/swc_css_lints/tests/rules/fail/color-hex-length/short/output.swc-stderr @@ -1,5 +1,5 @@ - x Hex color value '#FFFFFF' should be written into: '#FFF'. + x Hex color value '#ffffff' should be written into: '#fff'. ,-[$DIR/tests/rules/fail/color-hex-length/short/input.css:1:1] 1 | a { 2 | color: #FFFFFF; diff --git a/crates/swc_css_minifier/src/compressor/color.rs b/crates/swc_css_minifier/src/compressor/color.rs index d6720fc57ab..aadc62b846d 100644 --- a/crates/swc_css_minifier/src/compressor/color.rs +++ b/crates/swc_css_minifier/src/compressor/color.rs @@ -414,7 +414,7 @@ impl Compressor { Color::AbsoluteColorBase(AbsoluteColorBase::HexColor(HexColor { span, value, .. })) => { - if let Some(value) = self.get_named_color_by_hex(&value.to_ascii_lowercase()) { + if let Some(value) = self.get_named_color_by_hex(value) { *color = Color::AbsoluteColorBase(AbsoluteColorBase::NamedColorOrTransparent( Ident { span: *span, diff --git a/crates/swc_css_minifier/tests/fixture/compress-color/input.css b/crates/swc_css_minifier/tests/fixture/compress-color/input.css index 26ea03287e2..5e507a888cf 100644 --- a/crates/swc_css_minifier/tests/fixture/compress-color/input.css +++ b/crates/swc_css_minifier/tests/fixture/compress-color/input.css @@ -423,4 +423,9 @@ .class-83 { color: rgba(100, 100, 100, -300%); +} + +.color { + color: #ff0000; + color: #FF0000; } \ No newline at end of file diff --git a/crates/swc_css_minifier/tests/fixture/compress-color/output.min.css b/crates/swc_css_minifier/tests/fixture/compress-color/output.min.css index 28dc514a8de..6b57196f693 100644 --- a/crates/swc_css_minifier/tests/fixture/compress-color/output.min.css +++ b/crates/swc_css_minifier/tests/fixture/compress-color/output.min.css @@ -1 +1 @@ -.color{color:rgb(from rgba(0,0,0,0)255 255 255)}.color-1,.color-2{color:rgb(from red 255 255 255)}.color-3{color:rgb(from#f00 255 255 255)}.color-4{color:rgb(from#eee8aa 255 255 255)}.color-5{color:rgb(from#ff0 255 255 255)}.color-6{color:rgb(from snow 255 255 255)}.color-7{color:rgba(123,123,123,0)}.color-8,.color-9,.color-10,.color-11{color:#7b7b7b}.color-12{color:rgba(51,102,77,.23)}.color-13{color:#7b7b7b}.color-14{color:#6496c8}.class-15{color:#7b7b7b}.class-16{color:rgba(123,123,123,.99)}.class-17{color:#7b7b7b}.class-18{color:rgba(179,82,31,.13)}.class-19{color:rgba(180,82,31,.13)}.class-20{color:rgba(181,82,31,.13)}.class-21{color:rgba(182,82,31,.13)}.class-22{color:rgba(184,82,31,.13)}.class-23{color:rgba(181,181,181,.13)}.class-24{color:rgba(182,181,181,.13)}.class-25{color:rgba(181,181,181,.1%)}.class-26{color:rgba(181,181,181,.4%)}.color-27{color:rgb(from#eee8aa 255 255 255)}.color-28{color:rgb(from teal 255 255 255)}.color-29,.color-30{color:rgb(from red 255 255 255)}.class-31{color:#ff0800;color:gray;color:#000;color:#80ff00;color:#a6ff00;color:#f9ff00;color:#80ff00;color:red;color:#00ffae;color:red;color:#ff00bf;color:#8000ff;color:#0040ff;color:#0ff;color:#00ff40;color:#80ff00;color:#ffbf00;color:red;color:#ff00bf;color:rgba(128,0,255,.5);color:rgba(0,64,255,.5);color:rgba(0,255,255,.5);color:rgba(0,255,64,.5);color:rgba(128,255,0,.5);color:rgba(255,191,0,.5);color:rgba(255,0,0,.5);color:red;color:#ff00bf;color:#8000ff;color:#0040ff;color:#0ff;color:#00ff40;color:#80ff00;color:#ffbf00;color:red;color:#ff00bf;color:rgba(128,0,255,.5);color:rgba(0,64,255,.5);color:rgba(0,255,255,.5);color:rgba(0,255,64,.5);color:rgba(128,255,0,.5);color:rgba(255,191,0,.5);color:rgba(255,0,0,.5);color:#ff0400;color:#ff0800;color:#ff0d00}.class-32{color:gray;color:#4d7f4d;color:#fff;color:#fd3;color:#ccb333;color:green;color:#000;color:gray;color:#33b333;color:gray;color:rgba(128,128,128,.2);color:gray;color:rgba(128,128,128,.2);color:#6b8056;color:#4d7f4d;color:rgba(77,127,77,.5);color:red;color:rgba(255,0,0,0);color:#0f0;color:#cfc;color:green;color:rgba(77,127,77,0);color:rgba(170,170,170,0);color:#4d7f4d}.class-33{color:red}.class-34,.class-35{color:rgba(2,3,4,.5)}.class-36{color:#0f0}.class-37{color:rgba(0,255,0,.25)}.class-38{color:#000304}.class-39{color:#64c8ff}.class-40{color:rgba(20,10,0,0)}.class-41{color:#fff;color:#000}.class-42{color:rgba(0,0,0,0)}.class-43{color:maroon}.class-44{color:rgba(128,0,0,0)}.class-45{color:rgba(0,0,0,.5)}.class-46{color:#300}.class-47{color:rgba(51,0,0,0)}.class-48{color:rgba(0,0,0,.5)}.class-49{color:#000}.class-50{color:rgba(0,0,0,0)}.class-51{color:maroon}.class-52{color:rgba(128,0,0,0)}.class-53{color:rgba(0,0,0,.5)}.class-54{color:#300}.class-55{color:rgba(51,0,0,0)}.class-56{color:rgba(0,0,0,.5)}.class-57{color:#59a659}.class-58{color:rgba(77,127,77,.5)}.class-59,.class-60{color:red}.class-61,.class-62{color:rgba(255,0,0,0)}.class-63,.class-64{color:#0f0}.class-65,.class-66{color:#cfc}.class-67,.class-68{color:green}.class-69,.class-70{color:rgba(77,127,77,0)}.class-71,.class-72{color:rgba(170,170,170,0)}.class-73{color:#fff}.class-74{color:#000}.class-75{color:#fff}.class-76,.class-77,.class-78{color:#000}.class-79{color:#fff}.class-80,.class-81{color:#646464}.class-82,.class-83{color:rgba(100,100,100,0)} +.color{color:rgb(from rgba(0,0,0,0)255 255 255)}.color-1,.color-2{color:rgb(from red 255 255 255)}.color-3{color:rgb(from#f00 255 255 255)}.color-4{color:rgb(from#eee8aa 255 255 255)}.color-5{color:rgb(from#ff0 255 255 255)}.color-6{color:rgb(from snow 255 255 255)}.color-7{color:rgba(123,123,123,0)}.color-8,.color-9,.color-10,.color-11{color:#7b7b7b}.color-12{color:rgba(51,102,77,.23)}.color-13{color:#7b7b7b}.color-14{color:#6496c8}.class-15{color:#7b7b7b}.class-16{color:rgba(123,123,123,.99)}.class-17{color:#7b7b7b}.class-18{color:rgba(179,82,31,.13)}.class-19{color:rgba(180,82,31,.13)}.class-20{color:rgba(181,82,31,.13)}.class-21{color:rgba(182,82,31,.13)}.class-22{color:rgba(184,82,31,.13)}.class-23{color:rgba(181,181,181,.13)}.class-24{color:rgba(182,181,181,.13)}.class-25{color:rgba(181,181,181,.1%)}.class-26{color:rgba(181,181,181,.4%)}.color-27{color:rgb(from#eee8aa 255 255 255)}.color-28{color:rgb(from teal 255 255 255)}.color-29,.color-30{color:rgb(from red 255 255 255)}.class-31{color:#ff0800;color:gray;color:#000;color:#80ff00;color:#a6ff00;color:#f9ff00;color:#80ff00;color:red;color:#00ffae;color:red;color:#ff00bf;color:#8000ff;color:#0040ff;color:#0ff;color:#00ff40;color:#80ff00;color:#ffbf00;color:red;color:#ff00bf;color:rgba(128,0,255,.5);color:rgba(0,64,255,.5);color:rgba(0,255,255,.5);color:rgba(0,255,64,.5);color:rgba(128,255,0,.5);color:rgba(255,191,0,.5);color:rgba(255,0,0,.5);color:red;color:#ff00bf;color:#8000ff;color:#0040ff;color:#0ff;color:#00ff40;color:#80ff00;color:#ffbf00;color:red;color:#ff00bf;color:rgba(128,0,255,.5);color:rgba(0,64,255,.5);color:rgba(0,255,255,.5);color:rgba(0,255,64,.5);color:rgba(128,255,0,.5);color:rgba(255,191,0,.5);color:rgba(255,0,0,.5);color:#ff0400;color:#ff0800;color:#ff0d00}.class-32{color:gray;color:#4d7f4d;color:#fff;color:#fd3;color:#ccb333;color:green;color:#000;color:gray;color:#33b333;color:gray;color:rgba(128,128,128,.2);color:gray;color:rgba(128,128,128,.2);color:#6b8056;color:#4d7f4d;color:rgba(77,127,77,.5);color:red;color:rgba(255,0,0,0);color:#0f0;color:#cfc;color:green;color:rgba(77,127,77,0);color:rgba(170,170,170,0);color:#4d7f4d}.class-33{color:red}.class-34,.class-35{color:rgba(2,3,4,.5)}.class-36{color:#0f0}.class-37{color:rgba(0,255,0,.25)}.class-38{color:#000304}.class-39{color:#64c8ff}.class-40{color:rgba(20,10,0,0)}.class-41{color:#fff;color:#000}.class-42{color:rgba(0,0,0,0)}.class-43{color:maroon}.class-44{color:rgba(128,0,0,0)}.class-45{color:rgba(0,0,0,.5)}.class-46{color:#300}.class-47{color:rgba(51,0,0,0)}.class-48{color:rgba(0,0,0,.5)}.class-49{color:#000}.class-50{color:rgba(0,0,0,0)}.class-51{color:maroon}.class-52{color:rgba(128,0,0,0)}.class-53{color:rgba(0,0,0,.5)}.class-54{color:#300}.class-55{color:rgba(51,0,0,0)}.class-56{color:rgba(0,0,0,.5)}.class-57{color:#59a659}.class-58{color:rgba(77,127,77,.5)}.class-59,.class-60{color:red}.class-61,.class-62{color:rgba(255,0,0,0)}.class-63,.class-64{color:#0f0}.class-65,.class-66{color:#cfc}.class-67,.class-68{color:green}.class-69,.class-70{color:rgba(77,127,77,0)}.class-71,.class-72{color:rgba(170,170,170,0)}.class-73{color:#fff}.class-74{color:#000}.class-75{color:#fff}.class-76,.class-77,.class-78{color:#000}.class-79{color:#fff}.class-80,.class-81{color:#646464}.class-82,.class-83{color:rgba(100,100,100,0)}.color{color:red} diff --git a/crates/swc_css_parser/src/parser/values_and_units/mod.rs b/crates/swc_css_parser/src/parser/values_and_units/mod.rs index 3727f25adf1..78c66420b2c 100644 --- a/crates/swc_css_parser/src/parser/values_and_units/mod.rs +++ b/crates/swc_css_parser/src/parser/values_and_units/mod.rs @@ -2381,7 +2381,7 @@ where match bump!(self) { Token::Hash { value, raw, .. } => Ok(HexColor { span, - value, + value: value.to_ascii_lowercase(), raw: Some(raw), }), _ => { diff --git a/crates/swc_css_parser/tests/fixture/hex-colors/output.json b/crates/swc_css_parser/tests/fixture/hex-colors/output.json index 052782f5813..f0bc9888aa6 100644 --- a/crates/swc_css_parser/tests/fixture/hex-colors/output.json +++ b/crates/swc_css_parser/tests/fixture/hex-colors/output.json @@ -174,7 +174,7 @@ "end": 57, "ctxt": 0 }, - "value": "FFFFFF", + "value": "ffffff", "raw": "FFFFFF" } ], @@ -236,7 +236,7 @@ "end": 97, "ctxt": 0 }, - "value": "0000FFCC", + "value": "0000ffcc", "raw": "0000FFCC" } ], @@ -329,7 +329,7 @@ "end": 142, "ctxt": 0 }, - "value": "FFF", + "value": "fff", "raw": "FFF" } ], @@ -422,7 +422,7 @@ "end": 190, "ctxt": 0 }, - "value": "FFFF", + "value": "ffff", "raw": "FFFF" } ], @@ -484,7 +484,7 @@ "end": 217, "ctxt": 0 }, - "value": "FF", + "value": "ff", "raw": "FF" } ], diff --git a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/output.json b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/output.json index 129a5c0d458..9648ebdf8a3 100644 --- a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/output.json +++ b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/output.json @@ -112,7 +112,7 @@ "end": 17, "ctxt": 0 }, - "value": "ABCD", + "value": "abcd", "raw": "ABCD" } ], diff --git a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/output.json b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/output.json index b0c0702bc45..35b1afca55f 100644 --- a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/output.json +++ b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/output.json @@ -112,7 +112,7 @@ "end": 21, "ctxt": 0 }, - "value": "ABBBCCDD", + "value": "abbbccdd", "raw": "ABBBCCDD" } ], diff --git a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/output.json b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/output.json index 9f17ba114f9..f4d1eb4e7b3 100644 --- a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/output.json +++ b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/output.json @@ -112,7 +112,7 @@ "end": 21, "ctxt": 0 }, - "value": "AABBCCFF", + "value": "aabbccff", "raw": "AABBCCFF" } ], diff --git a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/output.json b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/output.json index d5bbaf9e974..2455ee0fedb 100644 --- a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/output.json +++ b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/output.json @@ -112,7 +112,7 @@ "end": 21, "ctxt": 0 }, - "value": "AABCCCDD", + "value": "aabcccdd", "raw": "AABCCCDD" } ], diff --git a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/CQiowK9DjojqKtlpQifemA/output.json b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/CQiowK9DjojqKtlpQifemA/output.json index 51f4dbec10f..65fb3208d72 100644 --- a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/CQiowK9DjojqKtlpQifemA/output.json +++ b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/CQiowK9DjojqKtlpQifemA/output.json @@ -112,7 +112,7 @@ "end": 19, "ctxt": 0 }, - "value": "ABBBCC", + "value": "abbbcc", "raw": "ABBBCC" } ], diff --git a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/output.json b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/output.json index 7dc32f59d3c..cc3e1af1c0f 100644 --- a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/output.json +++ b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/LoeMqdekBkn3XKYHQFHOZA/output.json @@ -112,7 +112,7 @@ "end": 19, "ctxt": 0 }, - "value": "AABCCC", + "value": "aabccc", "raw": "AABCCC" } ], diff --git a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/output.json b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/output.json index a1f5f10a841..dc69aa591ab 100644 --- a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/output.json +++ b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/Oc6Obl7mbH-MlFllIoAbdg/output.json @@ -112,7 +112,7 @@ "end": 21, "ctxt": 0 }, - "value": "AABBCCDE", + "value": "aabbccde", "raw": "AABBCCDE" } ], diff --git a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/output.json b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/output.json index 54e39c003e5..3fa8f1cd23e 100644 --- a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/output.json +++ b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/R6OYU1g_sB_euLV8Yzjw6w/output.json @@ -112,7 +112,7 @@ "end": 21, "ctxt": 0 }, - "value": "AABBCCEF", + "value": "aabbccef", "raw": "AABBCCEF" } ], diff --git a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/output.json b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/output.json index 64382d6f51c..9857a7d4056 100644 --- a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/output.json +++ b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/SFBgyV9jnFbMzWZoo9VbSQ/output.json @@ -112,7 +112,7 @@ "end": 17, "ctxt": 0 }, - "value": "ABCF", + "value": "abcf", "raw": "ABCF" } ], diff --git a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/output.json b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/output.json index 368be993286..a72a4b18f27 100644 --- a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/output.json +++ b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/U2nuhvtnEWZ_kMd6i7EDWA/output.json @@ -112,7 +112,7 @@ "end": 19, "ctxt": 0 }, - "value": "AABBCD", + "value": "aabbcd", "raw": "AABBCD" } ], diff --git a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/output.json b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/output.json index 22f039585bc..751f3080de4 100644 --- a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/output.json +++ b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/W3R-c5DPSkhG9QWYdcFdFg/output.json @@ -112,7 +112,7 @@ "end": 21, "ctxt": 0 }, - "value": "AABBCCDD", + "value": "aabbccdd", "raw": "AABBCCDD" } ], diff --git a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/output.json b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/output.json index cc93f46e531..6af0abf13e2 100644 --- a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/output.json +++ b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/_APxY5Pe47Bb71-CwD1nhw/output.json @@ -112,7 +112,7 @@ "end": 21, "ctxt": 0 }, - "value": "AABBCDFF", + "value": "aabbcdff", "raw": "AABBCDFF" } ], diff --git a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/output.json b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/output.json index 4f28277c15f..ad1b44ff347 100644 --- a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/output.json +++ b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/a0Yurt7E7InOYieD7nMCXg/output.json @@ -112,7 +112,7 @@ "end": 21, "ctxt": 0 }, - "value": "AABCCCFF", + "value": "aabcccff", "raw": "AABCCCFF" } ], diff --git a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/output.json b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/output.json index 054608ab312..452e2da1b69 100644 --- a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/output.json +++ b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/a7KElWOMF9ilrSsoliHkcg/output.json @@ -112,7 +112,7 @@ "end": 21, "ctxt": 0 }, - "value": "AABBCDDD", + "value": "aabbcddd", "raw": "AABBCDDD" } ], diff --git a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/output.json b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/output.json index 87b87811e87..0e6884c42bf 100644 --- a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/output.json +++ b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/qmXSF9N8euK5gfPoFGmV_Q/output.json @@ -112,7 +112,7 @@ "end": 19, "ctxt": 0 }, - "value": "AABBCC", + "value": "aabbcc", "raw": "AABBCC" } ], diff --git a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/output.json b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/output.json index 916efa4b4e8..7c063a74d37 100644 --- a/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/output.json +++ b/crates/swc_css_parser/tests/fixture/vendor/esbuild/misc/xc1mD3YfHByTKL-N-FL49A/output.json @@ -112,7 +112,7 @@ "end": 21, "ctxt": 0 }, - "value": "ABBBCCFF", + "value": "abbbccff", "raw": "ABBBCCFF" } ],