Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Dec 2, 2023
1 parent 60b50c8 commit a6b364e
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
.foo {
color: rgb(0, 128, 0);
color: rgb(0 128 0%);
color: rgb(0 50.2% 0%);
}

.bar {
color: rgba(0, 128, 0, 1);
color: rgb(0 128 0% / 1);
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.foo {
color: rgb(0 128 0%);
color: rgb(0 50.2% 0%);
}

.bar {
color: rgb(0 128 0% / 1);
}
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<div class="foo">Mixed components</div>
<div class="bar">Mixed components</div>
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@
return;
}

style = window.getComputedStyle(document.querySelector('.bar'));
if (style.color !== green) {
cb(false);
return;
}

cb(true);
})(callback);
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
color: hsl(120, 100, 25.1%);
color: hsl(120deg 100 25.1%);
}

.bar {
color: hsla(120, 100, 25.1%, 1);
color: hsl(120deg 100 25.1% / 1);
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.foo {
color: hsl(120deg 100 25.1%);
}

.bar {
color: hsl(120deg 100 25.1% / 1);
}
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<div class="foo">Mixed components</div>
<div class="bar">Mixed components</div>
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@
return;
}

style = window.getComputedStyle(document.querySelector('.bar'));
if (style.color !== green) {
cb(false);
return;
}

cb(true);
})(callback);
Binary file modified web-tests.db
Binary file not shown.

0 comments on commit a6b364e

Please sign in to comment.