Skip to content

Commit

Permalink
Bug 1824302 [wpt PR 39174] - [css-color-4] fix incorrect copy/paste f…
Browse files Browse the repository at this point in the history
…rom #39137, a=testonly

Automatic update from web-platform-tests
[css-color-4] fix incorrect copy/paste from web-platform-tests/wpt#39137 (#39174)

--

wpt-commits: 7c9c76e4eedebd3448e69ccc6becd80f49abd86d
wpt-pr: 39174
  • Loading branch information
romainmenke authored and moz-wptsync-bot committed Apr 12, 2023
1 parent 856b657 commit 6072a8b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
test_computed_value("color", `color(${colorSpace} none none none / 0.5)`, `color(${colorSpace} none none none / 0.5)`);
test_computed_value("color", `color(${colorSpace} 0 0 0 / none)`, `color(${colorSpace} 0 0 0 / none)`);

test_computed_value("color", `color(${colorSpace} calc(NaN) 0 0 / none)`, `color(${colorSpace} 0 0 0)`);
test_computed_value("color", `color(${colorSpace} calc(0 / 0) 0 0 / none)`, `color(${colorSpace} 0 0 0)`);
test_computed_value("color", `color(${colorSpace} calc(NaN) 0 0)`, `color(${colorSpace} 0 0 0)`);
test_computed_value("color", `color(${colorSpace} calc(0 / 0) 0 0)`, `color(${colorSpace} 0 0 0)`);
}

for (const colorSpace of [ "xyz", "xyz-d50", "xyz-d65" ]) {
Expand Down Expand Up @@ -76,8 +76,8 @@
test_computed_value("color", `color(${colorSpace} none none none / 0.5)`, `color(${resultColorSpace} none none none / 0.5)`);
test_computed_value("color", `color(${colorSpace} 0 0 0 / none)`, `color(${resultColorSpace} 0 0 0 / none)`);

test_computed_value("color", `color(${colorSpace} calc(NaN) 0 0 / none)`, `color(${resultColorSpace} 0 0 0)`);
test_computed_value("color", `color(${colorSpace} calc(0 / 0) 0 0 / none)`, `color(${resultColorSpace} 0 0 0)`);
test_computed_value("color", `color(${colorSpace} calc(NaN) 0 0)`, `color(${resultColorSpace} 0 0 0)`);
test_computed_value("color", `color(${colorSpace} calc(0 / 0) 0 0)`, `color(${resultColorSpace} 0 0 0)`);
}

// Opaque sRGB in color()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@

test_valid_value("color", `color(${colorSpace} 0 calc(infinity) 0)`, `color(${colorSpace} 0 calc(infinity) 0)`);
test_valid_value("color", `color(${colorSpace} 0 calc(-infinity) 0)`, `color(${colorSpace} 0 calc(-infinity) 0)`);
test_valid_value("color", `color(${colorSpace} calc(NaN) 0 0 / none)`, `color(${colorSpace} calc(NaN) 0 0)`);
test_valid_value("color", `color(${colorSpace} calc(0 / 0) 0 0 / none)`, `color(${colorSpace} calc(NaN) 0 0)`);
test_valid_value("color", `color(${colorSpace} calc(NaN) 0 0)`, `color(${colorSpace} calc(NaN) 0 0)`);
test_valid_value("color", `color(${colorSpace} calc(0 / 0) 0 0)`, `color(${colorSpace} calc(NaN) 0 0)`);
}

for (const colorSpace of [ "xyz", "xyz-d50", "xyz-d65" ]) {
Expand Down Expand Up @@ -75,8 +75,8 @@

test_valid_value("color", `color(${colorSpace} 0 calc(infinity) 0)`, `color(${colorSpace} 0 calc(infinity) 0)`);
test_valid_value("color", `color(${colorSpace} 0 calc(-infinity) 0)`, `color(${colorSpace} 0 calc(-infinity) 0)`);
test_valid_value("color", `color(${colorSpace} calc(NaN) 0 0 / none)`, `color(${colorSpace} calc(NaN) 0 0)`);
test_valid_value("color", `color(${colorSpace} calc(0 / 0) 0 0 / none)`, `color(${colorSpace} calc(NaN) 0 0)`);
test_valid_value("color", `color(${colorSpace} calc(NaN) 0 0)`, `color(${colorSpace} calc(NaN) 0 0)`);
test_valid_value("color", `color(${colorSpace} calc(0 / 0) 0 0)`, `color(${colorSpace} calc(NaN) 0 0)`);
}
</script>
</body>
Expand Down

0 comments on commit 6072a8b

Please sign in to comment.