Skip to content

Commit 50bb0c2

Browse files
test: added
1 parent 7b42d98 commit 50bb0c2

4 files changed

Lines changed: 13 additions & 0 deletions

File tree

test/configCases/css/css-modules-in-node/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ it("should allow to create css modules", done => {
6565
VARS: prod
6666
? "--my-app-491-DJ my-app-491-ms undefined my-app-491-cU"
6767
: "--./style.module.css-LOCAL-COLOR ./style.module.css-VARS undefined ./style.module.css-globalVarsUpperCase",
68+
inSupportScope: prod
69+
? "my-app-491-FO"
70+
: "./style.module.css-inSupportScope",
6871
});
6972
} catch (e) {
7073
return done(e);

test/configCases/css/css-modules/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ it("should allow to create css modules", done => {
6868
VARS: prod
6969
? "--my-app-491-DJ my-app-491-ms undefined my-app-491-cU"
7070
: "--./style.module.css-LOCAL-COLOR ./style.module.css-VARS undefined ./style.module.css-globalVarsUpperCase",
71+
inSupportScope: prod
72+
? "my-app-491-FO"
73+
: "./style.module.css-inSupportScope",
7174
});
7275
} catch (e) {
7376
return done(e);

test/configCases/css/css-modules/style.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,3 +219,9 @@
219219
COLOR: VAR(--GLOBAR-COLOR);
220220
--GLOBAR-COLOR: red;
221221
}
222+
223+
@supports (top: env(safe-area-inset-top, 0)) {
224+
.inSupportScope {
225+
color: red;
226+
}
227+
}

test/configCases/css/css-modules/use-style.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ export default {
3131
supportsInMedia: style.displayFlexInSupportsInMedia,
3232
displayFlexInSupportsInMediaUpperCase: style.displayFlexInSupportsInMediaUpperCase,
3333
VARS: `${style["LOCAL-COLOR"]} ${style.VARS} ${style["GLOBAL-COLOR"]} ${style.globalVarsUpperCase}`,
34+
inSupportScope: style.inSupportScope,
3435
};

0 commit comments

Comments
 (0)