/
test.css
3334 lines (3081 loc) · 101 KB
/
test.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@charset "UTF-8";
/* Susy Tests */
/* ========== */
html {
font-size: 100%;
line-height: 1.5em;
font-family: sans-serif; }
body {
padding: 1; }
h1 {
font-weight: bold; }
[role="banner"] {
font-size: 1.5rem;
line-height: 2rem; }
.results {
background-color: rgba(255, 0, 0, 0.25);
border: 1px solid red;
margin-bottom: 1rem;
margin-top: 1rem;
padding-bottom: 1rem;
padding-top: 1rem; }
.results:before {
content: 'Unit Tests: ';
font-weight: bold; }
.results:before, .results:after {
display: inline; }
.test-module {
border-bottom: 6px dotted;
padding-bottom: 1rem;
margin-bottom: .5rem; }
.test-module:last-of-type {
padding-bottom: 0;
border: 0; }
.test-module > h1 {
font-size: 1.5rem;
line-height: 2rem;
margin-bottom: .5rem; }
[class^="test__"] {
margin-bottom: .5rem; }
[class^="test__"] h1 {
padding: .25rem .5rem;
background: #666;
color: #eee;
font-weight: normal;
font-family: monospace, sans-serif; }
[class^="assert__"] {
margin-bottom: .5rem;
text-align: center; }
[class^="assert__"] div {
background: rgba(255, 255, 255, 0.25);
outline: 1px solid rgba(255, 0, 0, 0.25);
outline-offset: -1px; }
[class^="assert__"] .test, [class^="assert__"] .expect {
/* OUTPUT */
/* END_OUTPUT */
font-size: .75rem;
margin-bottom: .5rem; }
[class^="assert__"] .test {
outline-color: red; }
[class^="assert__"] .expect {
outline-color: green; }
[class^="assert__"] .spacer {
height: 2.5rem;
outline: 1px solid rgba(68, 68, 68, 0.25);
background: rgba(68, 68, 68, 0.125); }
/* # Module: Map Helpers */
/* --------------------- */
/* Test: truncate-list */
/* ✔ Returns a list truncated to the given length. */
/* */
/* Test: deep-get */
/* ✔ Returns value of deep key. */
/* */
/* Test: deep-set */
/* ✔ Returns map with deep value adjusted. */
/* ✔ Set deep value even in new key path. */
/* */
/* Test: deep-merge */
/* ✔ Should merge nested maps */
/* */
/* Test: deep-has-key */
/* ✔ Returns true for existing deep key. */
/* ✔ Returns false for non-existing deep key. */
/* */
/* */
/* # Module: General Settings */
/* -------------------------- */
/* Test: susy-defaults */
/* ✔ Assert that there is no "test" default. */
/* ✔ Assert that we have added a "test" default. */
/* */
/* Test: [mixin] susy-set */
/* ✔ Changes the global value for a setting. */
/* */
/* Test: [function] susy-get */
/* ✔ susy-get should be the same whether pre-parsed or not */
/* ✔ Returns local grid setting when available. */
/* ✔ Returns global default grid setting, when local is missing. */
/* ✔ Returns null gutter setting without falling back on default. */
/* ✔ Returns deep grid setting when available. */
/* ✔ Returns null when deep grid setting is not available. */
/* */
/* */
/* # Module: Grid Validation */
/* ------------------------- */
/* Test: [mixin] valid-columns */
/* ✔ A unitless number is a valid setting for columns. */
/* ✔ A list of unitless numbers is a valid setting for columns. */
/* ✔ A length is not a valid setting for columns */
/* ✔ A list including strings is not a valid setting for columns */
/* */
/* Test: [mixin] valid-gutters */
/* ✔ A unitless number is a valid setting for gutters. */
/* ✔ A length is not a valid setting for gutters. */
/* */
/* */
/* # Module: Column Math */
/* --------------------- */
/* Test: [function] is-symmetrical() */
/* ✔ Number is parsed as symmetrical grid. */
/* ✔ List is parsed as asymmetrical grid. */
/* ✔ Single-item list is parsed as asymmetrical grid. */
/* */
/* Test: [function] susy-count() */
/* ✔ Symmetrical grid-count is equal to columns setting. */
/* ✔ Asymmetrical grid-count is equal to columns list length. */
/* */
/* Test: [function] susy-sum() — symmetrical */
/* ✔ Symmetrical sum properly adds columns and gutters. */
/* ✔ Narrow sum properly adds columns and gutters. */
/* ✔ Wide sum includes an extra gutter. */
/* ✔ Wider sum includes two extra gutters. */
/* */
/* Test: [function] susy-sum() — asymmetrical */
/* ✔ Asymmetrical sum properly adds columns and gutters. */
/* ✔ Wide sum includes an extra gutter. */
/* ✔ Wider sum includes two extra gutters. */
/* */
/* Test: [function] susy-slice() */
/* ✔ Subset is equal to the span. */
/* ✔ Subset is an extracted list of span length, starting at location. */
/* ✔ Asymmetrical context without location returns first-position subset. */
/* */
/* Test: [function] susy() */
/* ✔ Symmetrical column-span-sum is equal to column-sum of span. */
/* ✔ Asymmetrical column-span-sum fetches subset before calculating sum. */
/* */
/* */
/* # Module: Language Settings */
/* --------------------------- */
/* Test: [function] parse-grid */
/* ✔ [parse-grid: map] Returns the correct columns. */
/* ✔ [parse-grid: #1] Returns the correct columns. */
/* ✔ [parse-grid: #1] Returns the correct gutters. */
/* ✔ [parse-grid: #1] Returns the correct container. */
/* ✔ [parse-grid: #1] Returns the correct math. */
/* ✔ [parse-grid: #1] Returns the correct output. */
/* ✔ [parse-grid: #1] Returns the correct container-position. */
/* ✔ [parse-grid: #1] Returns the correct flow. */
/* ✔ [parse-grid: #1] Returns the correct gutter-position. */
/* ✔ [parse-grid: #1 » debug] Returns the correct image. */
/* ✔ [parse-grid: #1 » debug] Returns the correct output. */
/* ✔ [parse-grid: #2] Returns the correct columns. */
/* ✔ [parse-grid: #2] Returns the correct gutters. */
/* ✔ [parse-grid: #2] Returns the correct container. */
/* ✔ [parse-grid: #2] Returns the correct column-width. */
/* ✔ [parse-grid: #2] Returns the correct math. */
/* ✔ [parse-grid: #2] Returns the correct output. */
/* ✔ [parse-grid: #2] Returns the correct container-position. */
/* ✔ [parse-grid: #2] Returns the correct flow. */
/* ✔ [parse-grid: #2] Returns the correct gutter-position. */
/* ✔ [parse-grid: #2] Returns the correct box-sizing. */
/* ✔ [parse-grid: #2 » debug] Returns the correct image. */
/* ✔ [parse-grid: #3] Returns the correct container-position. */
/* ✔ [parse-grid: #3] Returns the correct gutter-position. */
/* ✔ [parse-grid: #3] Returns the correct box-sizing. */
/* ✔ [parse-grid: #3 » debug] Returns the correct image. */
/* ✔ [parse-grid: #4] Returns the correct columns. */
/* ✔ [parse-grid: #4] Returns the correct gutters. */
/* ✔ [parse-grid: #4] Returns the correct gutter-position. */
/* ✔ [parse-grid: #4 » debug] Returns the correct image. */
/* ✔ [parse-grid: #5] Returns the correct gutter-position. */
/* */
/* Test: [function] parse-span */
/* ✔ [parse-span: #1] Returns the correct span. */
/* ✔ [parse-span: #1] Returns the correct edge. */
/* ✔ [parse-span: #1] Returns the correct columns. */
/* ✔ [parse-span: #1] Returns the correct gutters. */
/* ✔ [parse-span: #1] Returns the correct output. */
/* ✔ [parse-span: #1] Returns the correct math. */
/* ✔ [parse-span: #1] Returns the correct spread. */
/* ✔ [parse-span: #1] Returns the correct flow. */
/* ✔ [parse-span: #1] Returns the correct gutter-position. */
/* ✔ [parse-span: #2] Returns the correct span. */
/* ✔ [parse-span: #2] Returns the correct edge. */
/* ✔ [parse-span: #2] Returns the correct columns. */
/* ✔ [parse-span: #2] Returns the correct gutters. */
/* ✔ [parse-span: #2] Returns the correct column-width. */
/* ✔ [parse-span: #2] Returns the correct output. */
/* ✔ [parse-span: #2] Returns the correct math. */
/* ✔ [parse-span: #2] Returns the correct flow. */
/* ✔ [parse-span: #2] Returns the correct gutter-position. */
/* ✔ [parse-span: #2] Returns the correct role. */
/* ✔ [parse-span: #3] Returns the correct span. */
/* ✔ [parse-span: #3] Returns the correct edge. */
/* ✔ [parse-span: #3] Returns the correct columns. */
/* ✔ [parse-span: #3] Returns the correct column-width. */
/* ✔ [parse-span: #3] Returns the correct gutter-position. */
/* ✔ [parse-span: #3] Returns the correct spread. */
/* ✔ [parse-span: #4] Returns the correct span. */
/* ✔ [parse-span: #4] Returns the correct edge. */
/* ✔ [parse-span: #4] Returns the correct columns. */
/* ✔ [parse-span: #4] Returns the correct gutters. */
/* ✔ [parse-span: #4] Returns the correct gutter-position. */
/* ✔ [parse-span: #5] Returns the correct span. */
/* ✔ [parse-span: #5] Returns the correct location. */
/* ✔ [parse-span: #5] Returns the correct gutter-position. */
/* ✔ [parse-span: #5] Returns the correct gutter-override. */
/* ✔ [parse-span: #5] Returns the correct clear. */
/* ✔ [parse-span: #6] Returns the correct span. */
/* ✔ [parse-span: #6] Returns the correct gutter-override. */
/* ✔ [parse-span: #6] Returns the correct clear. */
/* ✔ [parse-span: #7] Returns the correct span. */
/* ✔ [parse-span: #7] Returns the correct edge. */
/* ✔ [parse-span: #7] Returns the correct columns. */
/* ✔ [parse-span: #7] Returns the correct gutters. */
/* ✔ [parse-span: #7] Returns the correct column-width. */
/* ✔ [parse-span: #7] Returns the correct gutter-position. */
/* */
/* Test: [function] parse-gutters */
/* ✔ [context-only] Returns the correct columns. */
/* ✔ [context-only] Returns the correct gutters. */
/* ✔ [context-only] Returns the correct gutter-position. */
/* ✔ [context-only [no "of"]] Returns the correct columns. */
/* ✔ [context-only [no "of"]] Returns the correct gutters. */
/* ✔ [context-only [no "of"]] Returns the correct gutter-position. */
/* ✔ [explicit-only] Returns the correct gutter-override. */
/* ✔ [explicit] Returns the correct columns. */
/* ✔ [explicit] Returns the correct gutters. */
/* ✔ [explicit] Returns the correct gutter-position. */
/* ✔ [explicit] Returns the correct gutter-override. */
/* */
/* */
/* # Module: Grids Syntax */
/* ---------------------- */
/* Test: [mixin] layout */
/* ✔ New container setting should be "960px" */
/* ✔ New columns setting should still be the default */
/* ✔ New box-sizing should be "border-box" */
/* ✔ New gutter-position should be "inside" */
/* ✔ New container setting should remain "960px" */
/* ✔ New columns setting should be "12" */
/* ✔ New box-sizing should remain "border-box" */
/* */
/* Test: [mixin] with-layout */
/* ✔ Start with 4 columns, before with-layout */
/* ✔ Start with 960px container, before with-layout */
/* ✔ Switch to 12 columns, inside with-layout */
/* ✔ Switch to auto container, inside with-layout */
/* ✔ End with 4 columns, after with-layout */
/* ✔ End with 960px container, after with-layout */
/* */
/* Test: [function] layout */
/* ✔ Returns a parsed grid map based on shorthand syntax */
/* */
/* Test: [function] _get-layout */
/* ✔ Returns layout merged with global settings */
/* ✔ Returns layout, without global settings */
/* */
/* */
/* # Module: Global Box-Sizing Syntax */
/* ---------------------------------- */
/* - [mixin] global-box-sizing */
.test__global-box-sizing .assert__global-box-sizing {
overflow: hidden;
background: rgba(204, 204, 255, 0.5); }
.test__global-box-sizing .assert__global-box-sizing .nest {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */
width: 60%;
margin: 0 auto; }
/* "Nested items should use border-box model." */
.test__global-box-sizing .assert__global-box-sizing:before {
content: "Nested items should use border-box model.";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
.test__global-box-sizing .assert__global-box-sizing .test *, .test__global-box-sizing .assert__global-box-sizing .test *:before, .test__global-box-sizing .assert__global-box-sizing .test *:after {
/* OUTPUT */
/* END_OUTPUT */ }
.test__global-box-sizing .assert__global-box-sizing .expect *, .test__global-box-sizing .assert__global-box-sizing .expect *:before, .test__global-box-sizing .assert__global-box-sizing .expect *:after {
/* OUTPUT */
/* END_OUTPUT */ }
.test__global-box-sizing .assert__global-box-sizing {
overflow: hidden;
background: rgba(204, 204, 255, 0.5); }
.test__global-box-sizing .assert__global-box-sizing .nest {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */
width: 60%;
margin: 0 auto; }
/* "Nested items should inherit the border-box model from the html element." */
.test__global-box-sizing .assert__global-box-sizing:before {
content: "Nested items should inherit the border-box model from the html element.";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
html {
/* OUTPUT */
/* END_OUTPUT */ }
*, *:before, *:after {
box-sizing: inherit; }
html {
/* OUTPUT */
/* END_OUTPUT */ }
*, *:before, *:after {
box-sizing: inherit; }
/* - [mixin] border-box-sizing */
.test__border-box-sizing .assert__border-box-sizing {
overflow: hidden;
background: rgba(204, 204, 255, 0.5); }
.test__border-box-sizing .assert__border-box-sizing .nest {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */
width: 60%;
margin: 0 auto; }
/* "Nested items should use border-box model." */
.test__border-box-sizing .assert__border-box-sizing:before {
content: "Nested items should use border-box model.";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
.test__border-box-sizing .assert__border-box-sizing .test *, .test__border-box-sizing .assert__border-box-sizing .test *:before, .test__border-box-sizing .assert__border-box-sizing .test *:after {
/* OUTPUT */
/* END_OUTPUT */ }
.test__border-box-sizing .assert__border-box-sizing .expect *, .test__border-box-sizing .assert__border-box-sizing .expect *:before, .test__border-box-sizing .assert__border-box-sizing .expect *:after {
/* OUTPUT */
/* END_OUTPUT */ }
.test__border-box-sizing .assert__border-box-sizing {
overflow: hidden;
background: rgba(204, 204, 255, 0.5); }
.test__border-box-sizing .assert__border-box-sizing .nest {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */
width: 60%;
margin: 0 auto; }
/* "Nested items should inherit the border-box model from the html element." */
.test__border-box-sizing .assert__border-box-sizing:before {
content: "Nested items should inherit the border-box model from the html element.";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
html {
/* OUTPUT */
/* END_OUTPUT */ }
*, *:before, *:after {
box-sizing: inherit; }
html {
/* OUTPUT */
/* END_OUTPUT */ }
*, *:before, *:after {
box-sizing: inherit; }
/* Test: update-box-model */
/* ✔ Box models are different before we test. */
/* ✔ Changes the global-box-sizing. */
/* */
/* */
/* # Module: Shared Context Language */
/* --------------------------------- */
/* Test: [function] nested */
/* ✔ Symmetrical nested context should be equal to the given span */
/* ✔ Symmetrical nested context should be equal no matter what the location */
/* ✔ Nested "3 of (1 1 2 3 5 8) at 2" should be "(1 2 3)" */
/* */
/* Test: [mixin] nested */
/* ✔ Symmetrical nested $columns should be equal to nesting span */
/* ✔ Last 4 of "(1 1 2 3 5 8 13)" should be "(3 5 8 13)" */
/* */
/* */
/* # Module: Background Syntax */
/* --------------------------- */
/* - [mixin] background-grid */
.test__background-grid .assert__outside {
background: rgba(204, 204, 255, 0.5); }
/* "Items should have a 7-column grid with outside gutters." */
.test__background-grid .assert__outside:before {
content: "Items should have a 7-column grid with outside gutters.";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
.test__background-grid .assert__outside .test {
/* OUTPUT */
/* END_OUTPUT */ }
.test__background-grid .assert__outside .expect {
background-image: linear-gradient(to right, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25) 66.66667%, transparent 66.66667%);
background-size: 15%;
background-origin: content-box;
background-clip: content-box;
background-position: left top; }
.test__background-grid .assert__split {
overflow: hidden;
background: rgba(204, 204, 255, 0.5); }
/* "Items should have a 8-column grid with split gutters." */
.test__background-grid .assert__split:before {
content: "Items should have a 8-column grid with split gutters.";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
.test__background-grid .assert__split .test {
/* OUTPUT */
/* END_OUTPUT */ }
.test__background-grid .assert__split .expect {
background-image: linear-gradient(to right, transparent 10%, rgba(102, 102, 255, 0.25) 10%, rgba(179, 179, 255, 0.25) 90%, transparent 90%);
background-size: 12.5%;
background-origin: content-box;
background-clip: content-box;
background-position: left top; }
.test__background-grid .assert__inside {
overflow: hidden;
background: rgba(204, 204, 255, 0.5); }
/* "Items should have a 8-column grid with inside gutters." */
.test__background-grid .assert__inside:before {
content: "Items should have a 8-column grid with inside gutters.";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
.test__background-grid .assert__inside .test {
/* OUTPUT */
/* END_OUTPUT */ }
.test__background-grid .assert__inside .expect {
background-image: linear-gradient(to right, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25));
background-size: 12.5%;
background-origin: content-box;
background-clip: content-box;
background-position: left top; }
.test__background-grid .assert__asym-outside {
overflow: hidden;
background: rgba(204, 204, 255, 0.5); }
/* "Items should have a (1 2 3 2 1)-column grid with outside gutters." */
.test__background-grid .assert__asym-outside:before {
content: "Items should have a (1 2 3 2 1)-column grid with outside gutters.";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
.test__background-grid .assert__asym-outside .test {
/* OUTPUT */
/* END_OUTPUT */ }
.test__background-grid .assert__asym-outside .expect {
background-image: linear-gradient(to right, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25) 9.09091%, transparent 9.09091%, transparent 13.63636%, rgba(102, 102, 255, 0.25) 13.63636%, rgba(179, 179, 255, 0.25) 31.81818%, transparent 31.81818%, transparent 36.36364%, rgba(102, 102, 255, 0.25) 36.36364%, rgba(179, 179, 255, 0.25) 63.63636%, transparent 63.63636%, transparent 68.18182%, rgba(102, 102, 255, 0.25) 68.18182%, rgba(179, 179, 255, 0.25) 86.36364%, transparent 86.36364%, transparent 90.90909%, rgba(102, 102, 255, 0.25) 90.90909%, rgba(179, 179, 255, 0.25));
background-origin: content-box;
background-clip: content-box;
background-position: left top; }
.test__background-grid .assert__asym-split {
overflow: hidden;
background: rgba(204, 204, 255, 0.5); }
/* "Items should have a (1 2 3 3)-column grid with split gutters." */
.test__background-grid .assert__asym-split:before {
content: "Items should have a (1 2 3 3)-column grid with split gutters.";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
.test__background-grid .assert__asym-split .test {
/* OUTPUT */
/* END_OUTPUT */ }
.test__background-grid .assert__asym-split .expect {
background-image: linear-gradient(to right, transparent 1.25%, rgba(102, 102, 255, 0.25) 1.25%, rgba(179, 179, 255, 0.25) 11.25%, transparent 11.25%, transparent 13.75%, rgba(102, 102, 255, 0.25) 13.75%, rgba(179, 179, 255, 0.25) 33.75%, transparent 33.75%, transparent 36.25%, rgba(102, 102, 255, 0.25) 36.25%, rgba(179, 179, 255, 0.25) 66.25%, transparent 66.25%, transparent 68.75%, rgba(102, 102, 255, 0.25) 68.75%, rgba(179, 179, 255, 0.25) 98.75%, transparent 98.75%);
background-origin: content-box;
background-clip: content-box;
background-position: left top; }
.test__background-grid .assert__asym-inside {
overflow: hidden;
background: rgba(204, 204, 255, 0.5); }
/* "Items should have a (1 2 3 3)-column grid with inside gutters." */
.test__background-grid .assert__asym-inside:before {
content: "Items should have a (1 2 3 3)-column grid with inside gutters.";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
.test__background-grid .assert__asym-inside .test {
/* OUTPUT */
/* END_OUTPUT */ }
.test__background-grid .assert__asym-inside .expect {
background-image: linear-gradient(to right, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25) 12.5%, rgba(102, 102, 255, 0.25) 12.5%, rgba(179, 179, 255, 0.25) 35%, rgba(102, 102, 255, 0.25) 35%, rgba(179, 179, 255, 0.25) 67.5%, rgba(102, 102, 255, 0.25) 67.5%, rgba(179, 179, 255, 0.25));
background-origin: content-box;
background-clip: content-box;
background-position: left top; }
/* Test: [function] get-background-sym */
/* ✔ Returns the correct columns gradient for an inside grid. */
/* ✔ Returns the correct background size for a fluid grid. */
/* ✔ Returns the correct columns gradient for an outside grid. */
/* ✔ Returns the correct background size for a static grid. */
/* ✔ Returns the correct columns gradient for a split-gutters grid. */
/* ✔ Returns the correct background size for a split-gutters grid. */
/* */
/* Test: [function] get-asym-inside */
/* ✔ Returns column gradient stops for asymmetric inside grid. */
/* */
/* Test: [function] get-asym-split */
/* ✔ Returns column gradient stops for asymmetric split grid. */
/* */
/* Test: [function] get-asym-outside */
/* ✔ Returns column gradient stops for asymmetric outside grid. */
/* */
/* Test: [function] get-background-asym */
/* ✔ Returns column background for asymmetric outside grid. */
/* ✔ Returns column background for asymmetric inside grid. */
/* */
/* Test: [function] get-background */
/* ✔ No values for a hidden grid (hide). */
/* ✔ Return key/values for columns. */
/* ✔ Only show baseline if $base-line-height exists. */
/* ✔ Only show baseline if $base-line-height has units. */
/* ✔ [Return key/values for baseline. » image] Returns the correct baseline. */
/* ✔ [Return key/values for baseline.] Returns the correct size. */
/* ✔ [Return key/values for baseline.] Returns the correct flow. */
/* ✔ [Return key/values for both baseline and columns. » image] Returns the correct columns. */
/* ✔ [Return key/values for both baseline and columns. » image] Returns the correct baseline. */
/* ✔ [Return key/values for both baseline and columns.] Returns the correct size. */
/* ✔ [Return key/values for both baseline and columns.] Returns the correct clip. */
/* ✔ [Return key/values for both baseline and columns.] Returns the correct flow. */
/* */
/* Test: [function] get-debug */
/* ✔ Returns proper default debug value. */
/* ✔ Returns proper user-set debug value. */
/* */
/* */
/* # Module: Container Syntax */
/* -------------------------- */
/* - [mixin] container */
.test__container .assert__default-box {
overflow: hidden;
background: rgba(204, 204, 255, 0.5); }
/* "Containers should have 80% max-width and show a 7 .5 grid." */
.test__container .assert__default-box:before {
content: "Containers should have 80% max-width and show a 7 .5 grid.";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
.test__container .assert__default-box .test {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */ }
.test__container .assert__default-box .test:after {
content: " ";
display: block;
clear: both; }
.test__container .assert__default-box .expect {
max-width: 80%;
margin-left: auto;
margin-right: auto;
background-image: linear-gradient(to right, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25) 66.66667%, transparent 66.66667%);
background-size: 15%;
background-origin: content-box;
background-clip: content-box;
background-position: left top; }
.test__container .assert__default-box .expect:after {
content: " ";
display: block;
clear: both; }
.test__container .assert__border-box {
overflow: hidden;
background: rgba(204, 204, 255, 0.5); }
/* "Containers should have 40em max-width, border-box-sizing, and show a (1 2 3 2 1) (4em 2em) grid, flush left." */
.test__container .assert__border-box:before {
content: "Containers should have 40em max-width, border-box-sizing, and show a (1 2 3 2 1) (4em 2em) grid, flush left.";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
.test__container .assert__border-box .test {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */ }
.test__container .assert__border-box .test:after {
content: " ";
display: block;
clear: both; }
.test__container .assert__border-box .expect {
/* OUTPUT */
/* END_OUTPUT */
max-width: 40em;
margin-left: 0;
margin-right: auto;
background-image: linear-gradient(to right, rgba(102, 102, 255, 0.25), rgba(179, 179, 255, 0.25) 10%, transparent 10%, transparent 12.5%, rgba(102, 102, 255, 0.25) 12.5%, rgba(179, 179, 255, 0.25) 32.5%, transparent 32.5%, transparent 35%, rgba(102, 102, 255, 0.25) 35%, rgba(179, 179, 255, 0.25) 65%, transparent 65%, transparent 67.5%, rgba(102, 102, 255, 0.25) 67.5%, rgba(179, 179, 255, 0.25) 87.5%, transparent 87.5%, transparent 90%, rgba(102, 102, 255, 0.25) 90%, rgba(179, 179, 255, 0.25));
background-origin: content-box;
background-clip: content-box;
background-position: left top; }
.test__container .assert__border-box .expect:after {
content: " ";
display: block;
clear: both; }
/* Test: [function] container */
/* ✔ The container-width of "960px 12 0.25 left static" should be 960px */
/* ✔ The container-width of "12 6em 1em" should be 83em */
/* ✔ The container-width of "1 3 4 2 1 0.25" should be 100% */
/* ✔ Omitted grid-widths should still be respected. */
/* ✔ Auto container-width should override existing grid. */
/* */
/* Test: [function] get-container-width */
/* ✔ An explicit container width should be returned without changes. */
/* ✔ An empty container value should return 100%. */
/* ✔ An auto container with no specified widths should return 100%. */
/* ✔ Returns narrow container for outside gutters. */
/* ✔ Returns wide container for inside gutters. */
/* ✔ Returns wide container for split gutters. */
/* */
/* Test: [function] parse-container-position() */
/* ✔ A null value should return null for both sides. */
/* ✔ A 2-part list is already a valid container position. */
/* ✔ A left-aligned container should have 0 margin-left, and auto right. */
/* ✔ A right-aligned container should have 0 margin-right, and auto left. */
/* ✔ A centered container should have auto left and right margins. */
/* ✔ A number should be used for both left and right container margins. */
/* ✔ A string should be used for both left and right container margins. */
/* */
/* */
/* # Module: Span Syntax */
/* --------------------- */
/* - [mixin] span */
.test__span .assert__default {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */ }
.test__span .assert__default:after {
content: " ";
display: block;
clear: both; }
.test__span .assert__default .test, .test__span .assert__default .expect {
clear: both; }
.test__span .assert__default .test:after, .test__span .assert__default .expect:after {
content: " ";
display: block;
clear: both; }
.test__span .assert__default .test .inner, .test__span .assert__default .expect .inner {
background: rgba(255, 255, 0, 0.25); }
/* "Span should set width (75%), float (left), and gutter (5% margin-right)" */
.test__span .assert__default:before {
content: "Span should set width (75%), float (left), and gutter (5% margin-right)";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
.test__span .assert__default .test {
-susy-span: 5 content-box inspect;
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */ }
.test__span .assert__default .test .inner {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */ }
.test__span .assert__default .expect {
-susy-span: 5 content-box inspect;
/* OUTPUT */
/* END_OUTPUT */
width: 70%;
float: left;
margin-right: 5%; }
.test__span .assert__default .expect .inner {
width: 35.71429%;
float: left;
margin-right: 7.14286%; }
.test__span .assert__inside {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */ }
.test__span .assert__inside:after {
content: " ";
display: block;
clear: both; }
.test__span .assert__inside .spacer {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */
clear: left; }
/* "Span should set width, float, clear, and inside gutter" */
.test__span .assert__inside:before {
content: "Span should set width, float, clear, and inside gutter";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
.test__span .assert__inside *, .test__span .assert__inside *:before, .test__span .assert__inside *:after {
/* OUTPUT */
/* END_OUTPUT */ }
.test__span .assert__inside .test {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */ }
.test__span .assert__inside .expect {
clear: both;
width: 62.5%;
float: left;
padding-left: 1.25%;
padding-right: 1.25%; }
.test__span .assert__explicit {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */ }
.test__span .assert__explicit:after {
content: " ";
display: block;
clear: both; }
.test__span .assert__explicit .test, .test__span .assert__explicit .expect {
clear: both; }
/* "Span should set width, float, inside gutter, and border-box" */
.test__span .assert__explicit:before {
content: "Span should set width, float, inside gutter, and border-box";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
.test__span .assert__explicit .test {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */ }
.test__span .assert__explicit .expect {
/* OUTPUT */
/* END_OUTPUT */
width: 80%;
float: left;
padding-left: 1.25%;
padding-right: 1.25%; }
/* Test: [mixin] span */
/* */
/* Test: [function] span */
/* ✔ Span function returns expected width value. */
/* */
/* Test: [function] span-math */
/* ✔ Returns correct span-math with outside gutters. */
/* ✔ Returns correct span-math gutters with explicit span. */
/* ✔ Returns correct span-math with split gutters. */
/* ✔ Returns correct padding for inside gutters. */
/* ✔ The padding for any "inside nest" should be "null null" */
/* ✔ Split nest use outer width, and no margins. */
/* ✔ Returns correction margins for isolation. */
/* ✔ Removes correct margins when last. */
/* ✔ Sets the correct float when last. */
/* ✔ No special margins for after first. */
/* ✔ Removes correct margins when full. */
/* ✔ Sets the correct float when full. */
/* ✔ Removes correct margins when first. */
/* ✔ No special margins for before last. */
/* */
/* Test: [function] get-span-width */
/* ✔ Explicit width is returned without changes. */
/* ✔ Returns correct fluid span width. */
/* ✔ Returns correct full span width. */
/* ✔ Returns correct width with inside gutters. */
/* ✔ Returns correct width with no-gutters. */
/* ✔ Returns correct width with split gutters. */
/* ✔ Returns the correct static span width. */
/* ✔ Returns the correct static width with inside gutters. */
/* ✔ Returns the correct wide span width. */
/* ✔ Returns the correct wider span width. */
/* ✔ Returns the correct narrow inside span width. */
/* ✔ Returns the correct narrow inside span width. */
/* */
/* */
/* # Module: Gutter Syntax */
/* ----------------------- */
/* - [mixin] gutters */
.test__gutters .assert__auto {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */ }
.test__gutters .assert__auto:after {
content: " ";
display: block;
clear: both; }
/* "Item should have 2.5% margin-gutters added before and after" */
.test__gutters .assert__auto:before {
content: "Item should have 2.5% margin-gutters added before and after";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
.test__gutters .assert__auto .test {
/* OUTPUT */
/* END_OUTPUT */ }
.test__gutters .assert__auto .expect {
margin-left: 1.25%;
margin-right: 1.25%; }
.test__gutters .assert__inside-static {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */ }
.test__gutters .assert__inside-static:after {
content: " ";
display: block;
clear: both; }
/* "Item should have 1em padding-gutters added before and after" */
.test__gutters .assert__inside-static:before {
content: "Item should have 1em padding-gutters added before and after";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
.test__gutters .assert__inside-static .test {
/* OUTPUT */
/* END_OUTPUT */ }
.test__gutters .assert__inside-static .expect {
padding-left: 1em;
padding-right: 1em; }
.test__gutters .assert__explicit {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */ }
.test__gutters .assert__explicit:after {
content: " ";
display: block;
clear: both; }
/* "Item should have 5em padding-gutters added before and after" */
.test__gutters .assert__explicit:before {
content: "Item should have 5em padding-gutters added before and after";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
.test__gutters .assert__explicit .test {
/* OUTPUT */
/* END_OUTPUT */ }
.test__gutters .assert__explicit .expect {
padding-left: 5em;
padding-right: 5em; }
/* Test: [function] gutter */
/* ✔ Returns correct outside gutters. */
/* ✔ Returns correct inside gutters. */
/* */
/* Test: [function] get-gutter-width */
/* ✔ Returns correct explicit gutter width. */
/* ✔ Returns correct static gutter width. */
/* ✔ Returns correct fluid gutter width. */
/* ✔ Returns correct inside gutter width. */
/* ✔ Returns correct split gutter width. */
/* ✔ Returns correct split no-gutters width. */
/* ✔ Returns correct null gutters width. */
/* ✔ Returns null width for 0-gutters. */
/* ✔ Returns correct override width for 0 gutters. */
/* */
/* Test: [function] get-gutters */
/* ✔ Returns correct explicit before gutter. */
/* ✔ Returns correct after gutters. */
/* ✔ Split gutters should be divided, even when explicit. */
/* */
/* Test: [function] is-inside */
/* ✔ After gutters are not inside. */
/* ✔ Inside-static gutters are inside. */
/* */
/* Test: [function] is-split */
/* ✔ After gutters are not split. */
/* ✔ Inside gutters are split. */
/* */
/* Test: [function] gutter-math */
/* ✔ Returns static gutters when math is static. */
/* ✔ Returns static gutters when gutter-position inside-static. */
/* */
/* */
/* # Module: Isolation Syntax */
/* -------------------------- */
/* - [mixin] isolate */
.test__isolate .assert__isolate {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */ }
.test__isolate .assert__isolate:after {
content: " ";
display: block;
clear: both; }
.test__isolate .assert__isolate .test, .test__isolate .assert__isolate .expect {
/* OUTPUT */
/* END_OUTPUT */
/* OUTPUT */
/* END_OUTPUT */
clear: both; }
/* "Item should be isolated in the last 2 columns" */
.test__isolate .assert__isolate:before {
content: "Item should be isolated in the last 2 columns";
display: block;
padding: .25rem .5rem;
text-align: left;
font-style: italic; }
.test__isolate .assert__isolate .test {
/* OUTPUT */
/* END_OUTPUT */ }
.test__isolate .assert__isolate .expect {
float: left;
margin-left: 75%;
margin-right: -100%; }
/* Test: [function] isolate */
/* ✔ Explicit value is passed through as isolation offset. */
/* ✔ Index span is calculated as isolation location. */
/* */
/* Test: [function] get-isolation */
/* ✔ Explicit isolation placements should be passed back unchanged. */
/* ✔ Isolation in the first column doesnt require any prefixed margins. */
/* ✔ Isolation for "last 2 of 7 (4em 2em) static" (5 wide) should be 30em. */
/* ✔ Returns isolation value for first split element. */
/* ✔ Returns isolation value for first split element. */
/* */
/* */
/* # Module: Gallery Syntax */
/* ------------------------ */
/* - [mixin] gallery */
.test__gallery .assert__sym {