Tests: Import a bunch of css-color tests from WPT

This commit is contained in:
Lucas CHOLLET 2024-12-15 16:04:32 -05:00 committed by Tim Ledbetter
commit 61755b29c9
Notes: github-actions[bot] 2024-12-19 09:55:15 +00:00
20 changed files with 328 additions and 0 deletions

View file

@ -0,0 +1,9 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Black text reference</title>
<style>
.test { color: #000000}
</style>
<body>
<p class="test">Test passes if this text is black</p>
</body>

View file

@ -0,0 +1,9 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Green text reference</title>
<style>
.test { color: #008000}
</style>
<body>
<p class="test">Test passes if this text is green</p>
</body>

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Green text reference for hex shorthand tests</title>
<style>
.test { background-color: #007700; width: 12em; height: 12em;}
</style>
<body>
<p>Test passes if you see a green square, and no red.</p>
<div class="test"></div>
</body>