diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-table-border-currentcolor-responsive.html')
-rw-r--r-- | testing/web-platform/tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-table-border-currentcolor-responsive.html | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-table-border-currentcolor-responsive.html b/testing/web-platform/tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-table-border-currentcolor-responsive.html new file mode 100644 index 0000000000..1d42a4fdda --- /dev/null +++ b/testing/web-platform/tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-table-border-currentcolor-responsive.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html class="reftest-wait"> +<title>CSS Color Adjust: border-color:currentColor is responsive to color-scheme for collapsed table borders</title> +<link rel="help" href="https://drafts.csswg.org/css-color-adjust"> +<link rel="help" href="https://crbug.com/1256758"> +<link rel="match" href="color-scheme-table-border-currentcolor-responsive-ref.html"> +<script src="/common/reftest-wait.js"></script> +<style> + :root { + background-color: gray; + } + + table { + border-collapse: collapse; + } + table, table * { + border: none; + } + + #table, #col, #tr, #th, #td, #tbody { + border: 5px solid currentColor; + color: CanvasText; + } + + * { + color-scheme: initial; + } + + .dark { + color-scheme: dark; + } + +</style> + +<!-- <table> --> +<table id=table> + <tr> + <td>X</td> + </tr> +</table> + +<!-- <col> --> +<table> + <colgroup> + <col id=col></col> + </colgroup> + <tr> + <td>X</td> + </tr> +</table> + +<!-- <tr> --> +<table> + <tr id=tr> + <td>X</td> + </tr> +</table> + +<!-- <th> --> +<table> + <tr> + <th id=th>X</th> + </tr> +</table> + +<!-- <td> --> +<table> + <tr> + <td id=td>X</td> + </tr> +</table> + +<!-- <tbody> --> +<table> + <tbody id=tbody> + <tr> + <td>X</td> + </tr> + </tbody> +</table> + +<script> + requestAnimationFrame(() => { + requestAnimationFrame(() => { + for (let e of [table, col, tr, th, td, tbody]) + e.classList.toggle('dark'); + takeScreenshot(); + }); + }); +</script> +</html> |