@@ -23,6 +23,20 @@ printWidth: 80
2323 -- without - semi : {color:red ;}
2424}
2525
26+ :root {
27+ -- like - a - apply - rule : {
28+ color:red ;} /* no semi here*/
29+ -- another - prop : blue ;
30+ }
31+
32+ :root {
33+ -- like - a - apply - rule : {
34+ color:red ;} /* no semi here*/
35+ -- another - one - like - a - apply - rule : {
36+ color:red ;
37+ };
38+ }
39+
2640=====================================output=====================================
2741/* http://tabatkins.github.io/specs/css-apply-rule/#defining */
2842
@@ -31,15 +45,75 @@ printWidth: 80
3145 background-color: hsl (120 , 70 % , 95 % );
3246 border - radius : 4px ;
3347 border : 1px solid var (-- theme - color late );
34- }
48+ };
3549 -- toolbar - title - theme : {
3650 color: green ;
37- }
51+ };
3852}
3953
4054:root {
4155 -- without - semi : {
4256 color: red ;
57+ };
58+ }
59+
60+ :root {
61+ -- like - a - apply - rule : {
62+ color:red ;} /* no semi here*/
63+ -- another - prop : blue ;
64+ }
65+
66+ :root {
67+ -- like - a - apply - rule : {
68+ color:red ;} /* no semi here*/
69+ -- another - one - like - a - apply - rule : {
70+ color:red ;
71+ };
72+ }
73+
74+ ================================================================================
75+ ` ;
76+
77+ exports [` postcss-8-improment.scss format 1` ] = `
78+ ====================================options=====================================
79+ parsers: ["scss"]
80+ printWidth: 80
81+ | printWidth
82+ =====================================input======================================
83+ /*
84+ This test is copied from \` postcss@8\` release note
85+
86+ https://github.com/postcss/postcss/releases/tag/8.0.0
87+ */
88+
89+ :root {
90+ -- empty : ;
91+ -- JSON : [1 , " 2" , {" three" : {" a" :1 }}, [4 ]];
92+ -- javascript : function (rule ) { console .log (rule ) };
93+ }
94+
95+ @supports (--element(".minwidth", { " minWidth" : 300 } )) {
96+ [-- self ] {
97+ background: greenyellow ;
98+ }
99+ }
100+
101+ =====================================output=====================================
102+ /*
103+ This test is copied from \` postcss@8\` release note
104+
105+ https://github.com/postcss/postcss/releases/tag/8.0.0
106+ */
107+
108+ :root {
109+ -- empty : ;
110+ -- JSON : [1 , " 2" , {" three" : {" a" : 1 }}, [4 ]];
111+ -- javascript : function (rule ) {console .log (rule )};
112+ }
113+
114+ @supports (--element(".minwidth", { " minWidth" : 300 } )) {
115+ [-- self ] {
116+ background: greenyellow ;
43117 }
44118}
45119
0 commit comments