mirror of
https://github.com/zhigang1992/sass-layout.git
synced 2026-04-29 11:45:09 +08:00
should layout node with inner & outer padding and stretch
This commit is contained in:
11
test.scss
11
test.scss
@@ -372,6 +372,17 @@
|
||||
@include assert-equal(render-node('.r'), (20, 20, 0, 0));
|
||||
@include assert-equal(render-node('.r .c_a'), (20, 20, 0, 0));
|
||||
}
|
||||
|
||||
@include test('should layout node with inner & outer padding and stretch') {
|
||||
$global-frame-map: () !global;
|
||||
.r {
|
||||
@include layout(( padding: 50 ));
|
||||
.c_a { @include layout(( padding: 10, align-self: stretch )) }
|
||||
}
|
||||
@include render-layout;
|
||||
@include assert-equal(render-node('.r'), (120, 120, 0, 0));
|
||||
@include assert-equal(render-node('.r .c_a'), (20, 20, 50, 50));
|
||||
}
|
||||
}
|
||||
|
||||
@include report;
|
||||
|
||||
Reference in New Issue
Block a user