Skip to content

Commit 2e6d070

Browse files
authored
color functional notation : percentage values (#386)
* color functional notation : percentage values * fix
1 parent 8fe9011 commit 2e6d070

24 files changed

+214
-35
lines changed

plugin-packs/postcss-preset-env/test/basic.autoprefixer.expect.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,11 @@
440440
}
441441

442442
.color-function {
443-
prop-1: rgb(0, 132, 94);
443+
prop-1: rgb(0,132,94);
444444
prop-2: 'color(display-p3 0.02472 0.01150 0.00574 / 1)';
445445
prop-3: rgba(7,3,1,1);
446446
prop-4: rgba(7,3,1,calc(33 / 22));
447-
prop-5: rgb(255, 255, 255);
447+
prop-5: rgb(255,255,255);
448448
}
449449

450450
.oklab {

plugin-packs/postcss-preset-env/test/basic.autoprefixer.false.expect.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,11 @@
440440
}
441441

442442
.color-function {
443-
prop-1: rgb(0, 132, 94);
443+
prop-1: rgb(0,132,94);
444444
prop-2: 'color(display-p3 0.02472 0.01150 0.00574 / 1)';
445445
prop-3: rgba(7,3,1,1);
446446
prop-4: rgba(7,3,1,calc(33 / 22));
447-
prop-5: rgb(255, 255, 255);
447+
prop-5: rgb(255,255,255);
448448
}
449449

450450
.oklab {

plugin-packs/postcss-preset-env/test/basic.ch38.expect.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,11 +360,11 @@
360360
}
361361

362362
.color-function {
363-
prop-1: rgb(0, 132, 94);
363+
prop-1: rgb(0,132,94);
364364
prop-2: 'color(display-p3 0.02472 0.01150 0.00574 / 1)';
365365
prop-3: rgba(7,3,1,1);
366366
prop-4: rgba(7,3,1,calc(33 / 22));
367-
prop-5: rgb(255, 255, 255);
367+
prop-5: rgb(255,255,255);
368368
}
369369

370370
.oklab {

plugin-packs/postcss-preset-env/test/basic.ch88-ff78-saf10.expect.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,11 +359,11 @@ h1.test-custom-selectors,h2.test-custom-selectors,h3.test-custom-selectors,h4.te
359359
}
360360

361361
.color-function {
362-
prop-1: rgb(0, 132, 94);
362+
prop-1: rgb(0,132,94);
363363
prop-2: 'color(display-p3 0.02472 0.01150 0.00574 / 1)';
364364
prop-3: rgba(7,3,1,1);
365365
prop-4: rgba(7,3,1,calc(33 / 22));
366-
prop-5: rgb(255, 255, 255);
366+
prop-5: rgb(255,255,255);
367367
}
368368

369369
.oklab {

plugin-packs/postcss-preset-env/test/basic.expect.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,11 @@
464464
}
465465

466466
.color-function {
467-
prop-1: rgb(0, 132, 94);
467+
prop-1: rgb(0,132,94);
468468
prop-2: 'color(display-p3 0.02472 0.01150 0.00574 / 1)';
469469
prop-3: rgba(7,3,1,1);
470470
prop-4: rgba(7,3,1,calc(33 / 22));
471-
prop-5: rgb(255, 255, 255);
471+
prop-5: rgb(255,255,255);
472472
}
473473

474474
.oklab {

plugin-packs/postcss-preset-env/test/basic.ff49.expect.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,11 +356,11 @@
356356
}
357357

358358
.color-function {
359-
prop-1: rgb(0, 132, 94);
359+
prop-1: rgb(0,132,94);
360360
prop-2: 'color(display-p3 0.02472 0.01150 0.00574 / 1)';
361361
prop-3: rgba(7,3,1,1);
362362
prop-4: rgba(7,3,1,calc(33 / 22));
363-
prop-5: rgb(255, 255, 255);
363+
prop-5: rgb(255,255,255);
364364
}
365365

366366
.oklab {

plugin-packs/postcss-preset-env/test/basic.ie10.expect.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,11 +479,11 @@
479479
}
480480

481481
.color-function {
482-
prop-1: rgb(0, 132, 94);
482+
prop-1: rgb(0,132,94);
483483
prop-2: 'color(display-p3 0.02472 0.01150 0.00574 / 1)';
484484
prop-3: rgba(7,3,1,1);
485485
prop-4: rgba(7,3,1,calc(33 / 22));
486-
prop-5: rgb(255, 255, 255);
486+
prop-5: rgb(255,255,255);
487487
}
488488

489489
.oklab {

plugin-packs/postcss-preset-env/test/basic.nesting.false.expect.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,11 +462,11 @@ h1.test-custom-selectors,h2.test-custom-selectors,h3.test-custom-selectors,h4.te
462462
}
463463

464464
.color-function {
465-
prop-1: rgb(0, 132, 94);
465+
prop-1: rgb(0,132,94);
466466
prop-2: 'color(display-p3 0.02472 0.01150 0.00574 / 1)';
467467
prop-3: rgba(7,3,1,1);
468468
prop-4: rgba(7,3,1,calc(33 / 22));
469-
prop-5: rgb(255, 255, 255);
469+
prop-5: rgb(255,255,255);
470470
}
471471

472472
.oklab {

plugin-packs/postcss-preset-env/test/basic.preserve.true.expect.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,6 @@ h1.test-custom-selectors,h2.test-custom-selectors,h3.test-custom-selectors,h4.te
773773
}
774774

775775
.color-function {
776-
prop-1: rgb(0, 132, 94);
777776
prop-1: rgb(0,132,94);
778777
prop-1: color(display-p3 0.00000 0.51872 0.36985);
779778
prop-2: 'color(display-p3 0.02472 0.01150 0.00574 / 1)';
@@ -785,7 +784,6 @@ h1.test-custom-selectors,h2.test-custom-selectors,h3.test-custom-selectors,h4.te
785784
prop-4: color(display-p3 0.02472 0.01150 0.00574 / -webkit-calc(33 / 22));
786785
prop-4: color(display-p3 0.02472 0.01150 0.00574 / -moz-calc(33 / 22));
787786
prop-4: color(display-p3 0.02472 0.01150 0.00574 / calc(33 / 22));
788-
prop-5: rgb(255, 255, 255);
789787
prop-5: rgb(255,255,255);
790788
prop-5: color(display-p3 1 1 1 1);
791789
}

plugin-packs/postcss-preset-env/test/basic.stage0-ff49.expect.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,11 @@ h1.test-custom-selectors,h2.test-custom-selectors,h3.test-custom-selectors,h4.te
361361
}
362362

363363
.color-function {
364-
prop-1: rgb(0, 132, 94);
364+
prop-1: rgb(0,132,94);
365365
prop-2: 'color(display-p3 0.02472 0.01150 0.00574 / 1)';
366366
prop-3: rgba(7,3,1,1);
367367
prop-4: rgba(7,3,1,calc(33 / 22));
368-
prop-5: rgb(255, 255, 255);
368+
prop-5: rgb(255,255,255);
369369
}
370370

371371
.oklab {

0 commit comments

Comments
 (0)