<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-syntax-3/#parse-comma-separated-list-of-component-values">
<script type="text/javascript" src="../../resources/testharness.js"></script>
<script type="text/javascript" src="../../resources/testharnessreport.js"></script>

<script>
function test_parsing(query, expected) {
    if(expected === undefined)
        expected = query;

    test(() => {
        const match = window.matchMedia(query);
        assert_equals(match.media, expected)
    