Skip to content

Commit d99fc07

Browse files
committed
Spec for the 6-th bug with corrupted default flex-shrink value in IE
1 parent d42eb9a commit d99fc07

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

specs/bug6Spec.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
var test = require('./test');
2+
3+
describe('bug 6', function() {
4+
it('Set flex-shrink to 1 by default', function(done) {
5+
var input = 'div{flex: 1;}';
6+
var output = 'div{flex: 1 1 0%;}';
7+
test(input, output, {}, done);
8+
});
9+
describe('does nothing', function() {
10+
it('when not flex declarations', function(done) {
11+
var css = 'a{display: flex;}';
12+
test(css, css, {}, done);
13+
});
14+
it('when flex-shrink is set explicitly to zero', function(done) {
15+
var css = 'div{flex: 1 0 0%;}';
16+
test(css, css, {}, done);
17+
});
18+
it('when flex-shrink is set explicitly to non-zero value', function(done) {
19+
var css = 'div{flex: 1 2 0%}';
20+
test(css, css, {}, done);
21+
});
22+
});
23+
});

0 commit comments

Comments
 (0)