Skip to content

Commit 2440366

Browse files
committed
Writes failing tests to demo problem
1 parent 9dc87a1 commit 2440366

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/fixtures/color.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ body {
1010

1111
border-color: color(#999 a(0.8)) color(#999 a(0.8));
1212
}
13+
14+
.withAlpha {
15+
color: color(black a(90%) contrast(99%));
16+
background-color: color(red a(50%) shade(50%));
17+
border-color: color(red a(80%) tint(50%));
18+
}

test/fixtures/color.expected.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ body {
1010

1111
border-color: rgba(153, 153, 153, 0.8) rgba(153, 153, 153, 0.8);
1212
}
13+
14+
.withAlpha {
15+
color: rgba(255, 255, 255, 0.9);
16+
background-color: rgba(128, 0, 0, 0.5);
17+
border-color: rgba(255, 128, 128, 0.8);
18+
}

0 commit comments

Comments
 (0)