Skip to content

Commit

Permalink
add @container to integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
basro committed May 19, 2024
1 parent 96f7314 commit e21f84a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions stylance/tests/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,14 @@ $some-scss-variable: 10px; // Scss variable declarations in top scope.

@layer;

@container (width > 400px) {
h2 {
font-size: 1.5em;
}

.style9 {
font-size: 1.5em;
}
}

//eof
2 changes: 2 additions & 0 deletions stylance/tests/test_import_styles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ fn test_import_crate_style() {
assert_eq!(style::style6, "style6-a331da9");
assert_eq!(style::style7, "style7-a331da9");
assert_eq!(style::style8, "style8-a331da9");
assert_eq!(style::style9, "style9-a331da9");

assert_eq!(style::style_with_dashes, "style-with-dashes-a331da9");
assert_eq!(style::nested_style, "nested-style-a331da9");
Expand Down Expand Up @@ -40,6 +41,7 @@ fn test_import_style() {
assert_eq!(style::style6, "style6-a331da9");
assert_eq!(style::style7, "style7-a331da9");
assert_eq!(style::style8, "style8-a331da9");
assert_eq!(style::style9, "style9-a331da9");

assert_eq!(style::style_with_dashes, "style-with-dashes-a331da9");
assert_eq!(style::nested_style, "nested-style-a331da9");
Expand Down

0 comments on commit e21f84a

Please sign in to comment.