File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -2436,6 +2436,15 @@ contexts:
2436
2436
- meta_scope : meta.function.math-return-any.css
2437
2437
- include : value-calc
2438
2438
- include : end-func
2439
+ - match : \b(round)(\()
2440
+ captures :
2441
+ 1 : support.function.math-return-any.css
2442
+ 2 : punctuation.section.function.begin.css
2443
+ push :
2444
+ - meta_scope : meta.function.math-return-any.css
2445
+ - include : rounding-strategy
2446
+ - include : value-calc
2447
+ - include : end-func
2439
2448
2440
2449
func-math-return-number :
2441
2450
- match : \b(cos|exp|log|pow|sign|sin|sqrt|tan)(\()
@@ -10867,6 +10876,10 @@ contexts:
10867
10876
- include : percentage
10868
10877
- include : number
10869
10878
10879
+ rounding-strategy :
10880
+ - match : ' \b(nearest|up|down|to-zero){{b}}'
10881
+ scope : support.constant.property-value.css
10882
+
10870
10883
# A rule is a selector and a declaration list.
10871
10884
# selector {
10872
10885
# property1: value1;
Original file line number Diff line number Diff line change 4302
4302
line-height: sin(5deg);
4303
4303
line-height: sqrt(1.2 + .1);
4304
4304
line-height: tan(5deg + 10deg);
4305
+ line-height: round(1.2);
4306
+ line-height: round(nearest, 125%, 10%);
4307
+ line-height: round(up, 5rem / 2, 1rem);
4308
+ line-height: round(down, pi, 1);
4309
+ line-height: round(to - zero, 5rem / 2, 1rem);
4305
4310
4306
4311
line-snap: initial;
4307
4312
line-snap: inherit;
You can’t perform that action at this time.
0 commit comments