Tests: Import a whole bunch of WPT mediaqueries tests

A lot of these are ref-tests, so I'm skipping the failing ones for now,
and will make as many pass as possible in subsequent commits.
This commit is contained in:
Sam Atkins
2025-05-19 15:57:09 +01:00
parent 6711438e0d
commit bb035fbfe0
Notes: github-actions[bot] 2025-05-23 09:19:59 +00:00
90 changed files with 2213 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Media Queries Test: 'aspect-ratio' serializes with spaces around ' / '.</title>
<link rel="help" href="https://drafts.csswg.org/cssom/#serialize-a-css-component-value">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://mozilla.org" title="Mozilla">
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
test(function() {
assert_equals(matchMedia("(aspect-ratio: 1/3)").media, "(aspect-ratio: 1 / 3)");
}, "<ratio> serializes with spaces around the integer.");
</script>