testing/web-platform/tests/css/css-masking/parsing/mask-repeat-valid.html
author Duncan McIntosh <dmcintosh@mozilla.com>
Wed, 09 Jul 2025 19:42:02 +0000 (8 hours ago)
changeset 795924 9ccc6a2267cbf69c621fec973bd28573c2a45a1f
parent 684235 07b248f229b296b771ed67c80c04636ef75a5916
permissions -rw-r--r--
Bug 1966586 - Reuse other browser windows when opening _blank links in Taskbar Tabs windows. r=nrishel This doesn't affect other tab additions, nor does it stop the tab bar from appearing altogether. The idea is that _if_ another tab is somehow made, the user should see it; but we should not create new tabs if we can avoid it. This also adds tests for opening URIs in popups and taskbar tabs to make it less likely that this breaks in future. Differential Revision: https://phabricator.services.mozilla.com/D253726
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Masking Module Level 1: parsing mask-repeat with valid values</title>
<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-mask-repeat">
<meta name="assert" content="mask-repeat supports the full grammar.">
<!--
<mask-repeat> = <repeat-style>#
<repeat-style> = repeat-x | repeat-y | [repeat | space | round | no-repeat]{1,2}
 -->
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_valid_value("mask-repeat", "repeat-x");
test_valid_value("mask-repeat", "repeat-y");

test_valid_value("mask-repeat", "repeat");
test_valid_value("mask-repeat", "space");
test_valid_value("mask-repeat", "round");
test_valid_value("mask-repeat", "no-repeat");

test_valid_value("mask-repeat", "repeat repeat", "repeat");
test_valid_value("mask-repeat", "repeat space");
test_valid_value("mask-repeat", "repeat round");
test_valid_value("mask-repeat", "repeat no-repeat", "repeat-x");

test_valid_value("mask-repeat", "space repeat");
test_valid_value("mask-repeat", "space space", "space");
test_valid_value("mask-repeat", "space round");
test_valid_value("mask-repeat", "space no-repeat");

test_valid_value("mask-repeat", "round repeat");
test_valid_value("mask-repeat", "round space");
test_valid_value("mask-repeat", "round round", "round");
test_valid_value("mask-repeat", "round no-repeat");

test_valid_value("mask-repeat", "no-repeat repeat", "repeat-y");
test_valid_value("mask-repeat", "no-repeat space");
test_valid_value("mask-repeat", "no-repeat round");
test_valid_value("mask-repeat", "no-repeat no-repeat", "no-repeat");
</script>
</body>
</html>