Skip to content

Commit 2efb0c1

Browse files
committed
[gh404] Adds failing tests for overriding global flexbox settings
1 parent 2999fe9 commit 2efb0c1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/lost-center.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,19 @@ describe('lost-center', function() {
8484
'a { display: flex; flex-flow: row wrap; max-width: 1140px; margin-left: auto; margin-right: auto; padding-left: 30px; padding-right: 30px }'
8585
);
8686
});
87+
88+
it('overrides global flex when told to', function() {
89+
check(
90+
'@lost flexbox flex; .root { lost-center: 600px no-flex; }',
91+
'.root { max-width: 600px; margin-left: auto; margin-right: auto; }\n' +
92+
'.root:before { content: \'\'; display: table; }\n' +
93+
'.root:after { content: \'\'; display: table; clear: both; }'
94+
);
95+
check(
96+
'@lost flexbox flex; .root { lost-center: 600px; lost-center-flexbox: no-flex;}',
97+
'.root { max-width: 600px; margin-left: auto; margin-right: auto; }\n' +
98+
'.root:before { content: \'\'; display: table; }\n' +
99+
'.root:after { content: \'\'; display: table; clear: both; }'
100+
);
101+
});
87102
});

0 commit comments

Comments
 (0)