@@ -121,6 +121,47 @@ void main() {
121121 });
122122 });
123123
124+ group ('3 values' , () {
125+ testWidgets ('parses all' , (WidgetTester tester) async {
126+ const html = '<div style="padding: 1px 2px 3px">Foo</div>' ;
127+ final explained = await explain (tester, html);
128+ expect (
129+ explained,
130+ equals (
131+ '[Padding:(1,2,3,2),child='
132+ '[CssBlock:child='
133+ '[RichText:(:Foo)]]]' ,
134+ ),
135+ );
136+ });
137+
138+ testWidgets ('parses all (rtl)' , (WidgetTester tester) async {
139+ const html = '<div style="padding: 1px 2px 3px">Foo</div>' ;
140+ final explained = await explain (tester, html, rtl: true );
141+ expect (
142+ explained,
143+ equals (
144+ '[Padding:(1,2,3,2),child='
145+ '[CssBlock:child='
146+ '[RichText:dir=rtl,(:Foo)]]]' ,
147+ ),
148+ );
149+ });
150+
151+ testWidgets ('parses top and bottom only' , (WidgetTester tester) async {
152+ const html = '<div style="padding: 1px 0 3px">Foo</div>' ;
153+ final explained = await explain (tester, html);
154+ expect (
155+ explained,
156+ equals (
157+ '[Padding:(1,0,3,0),child='
158+ '[CssBlock:child='
159+ '[RichText:(:Foo)]]]' ,
160+ ),
161+ );
162+ });
163+ });
164+
124165 group ('2 values' , () {
125166 testWidgets ('parses both' , (WidgetTester tester) async {
126167 const html = '<div style="padding: 5px 10px">Foo</div>' ;
0 commit comments