Skip to content

Commit

Permalink
Add various CSS samples for coverage check
Browse files Browse the repository at this point in the history
  • Loading branch information
nbacquey committed Oct 29, 2024
1 parent 4e8f4c5 commit 2308105
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 3 deletions.
5 changes: 2 additions & 3 deletions topiary-cli/tests/sample-tester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ fn coverage_tester() {
#[cfg(feature = "bash")]
coverage_test("bash.sh");

// FIXME: enrich CSS file
// #[cfg(feature = "css")]
// coverage_test("css.css");
#[cfg(feature = "css")]
coverage_test("css.css");

#[cfg(feature = "json")]
coverage_test("json.json");
Expand Down
35 changes: 35 additions & 0 deletions topiary-cli/tests/samples/expected/css.css
Original file line number Diff line number Diff line change
Expand Up @@ -4904,3 +4904,38 @@
display: none !important;
}
}
@media (min-width: 1200px), (max-width: 1200px) and (not (min-width: 1200px)) {
.fs-1 {
font-size: 2.5rem !important;
}
}
@import url("my-imported-styles.css");
@charset "UTF-8";
@keyframes identifier {
0% {
top: 0;
left: 0;
}
30% {
top: 50px;
}
72% {
left: 50px;
}
100% {
top: 100px;
left: 100%;
}
}
/* Various selectors: descendant, sibling, and adjacent sibling */
li li {
list-style-type: circle;
}

li ~ li {
list-style-type: circle;
}

li + li {
list-style-type: circle;
}
35 changes: 35 additions & 0 deletions topiary-cli/tests/samples/input/css.css

Large diffs are not rendered by default.

0 comments on commit 2308105

Please sign in to comment.