Skip to content

Commit

Permalink
refactor: rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 19, 2022
1 parent b819192 commit fc1cea0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 30 deletions.
25 changes: 0 additions & 25 deletions crates/swc_css_codegen/tests/fixture.rs
Expand Up @@ -290,31 +290,6 @@ impl VisitMut for NormalizeTest {
n.name.value = n.name.value.to_lowercase().into();
}

fn visit_mut_pseudo_class_selector(&mut self, n: &mut PseudoClassSelector) {
fn visit_mut_url(&mut self, n: &mut Url) {
n.visit_mut_children_with(self);

n.name.value = n.name.value.to_lowercase().into();
}

fn visit_mut_pseudo_element_selector(&mut self, n: &mut PseudoElementSelector) {
n.visit_mut_children_with(self);

n.name.value = n.name.value.to_lowercase().into();
}

fn visit_mut_tag_name_selector(&mut self, n: &mut TagNameSelector) {
n.visit_mut_children_with(self);

n.name.value.value = n.name.value.value.to_lowercase().into();
}

fn visit_mut_attribute_selector_modifier(&mut self, n: &mut AttributeSelectorModifier) {
n.visit_mut_children_with(self);

n.value.value = n.value.value.to_lowercase().into();
}

fn visit_mut_an_plus_b_notation(&mut self, n: &mut AnPlusBNotation) {
n.visit_mut_children_with(self);

Expand Down
Expand Up @@ -111,8 +111,8 @@
@media func(100px) {}
@media screen and func(100px) {}
@media (max-width: 650px), calc(150px + 150px) {}
@MEDIA ALL {}
@MEDIA (PREFERS-reduced-motion: no-preference) {
@media ALL {}
@media (PREFERS-reduced-motion: no-preference) {
:root {
scroll-behavior: smooth;
}
Expand Down
6 changes: 3 additions & 3 deletions crates/swc_css_codegen/tests/fixture/values/url/1/output.css
Expand Up @@ -4,8 +4,8 @@ div {
background: url(https://example.com/image.png);
background: url("https://example.com/image.png");
background: url("https://example.com/image.png");
background: URL("https://example.com/image.png");
background: URL("https://example.com/image.png");
background: url("https://example.com/image.png");
background: url("https://example.com/image.png");
background: url(data:image/png;base64,iRxVB0);
background: url(#IDofSVGpath);
background: url("//aa.com/img.svg" prefetch);
Expand All @@ -16,7 +16,7 @@ div {
background: url("");
--foo: "http://www.example.com/pinkish.gif";
background: src("http://www.example.com/pinkish.gif");
background: SRC("http://www.example.com/pinkish.gif");
background: src("http://www.example.com/pinkish.gif");
background: src(var(--foo));
background: url(https://example.com/image.png);
background: url(https://example.com/image.png);
Expand Down

0 comments on commit fc1cea0

Please sign in to comment.