summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-align/parsing/justify-tracks-computed.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-align/parsing/justify-tracks-computed.html')
-rw-r--r--testing/web-platform/tests/css/css-align/parsing/justify-tracks-computed.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-align/parsing/justify-tracks-computed.html b/testing/web-platform/tests/css/css-align/parsing/justify-tracks-computed.html
new file mode 100644
index 0000000000..372d17c910
--- /dev/null
+++ b/testing/web-platform/tests/css/css-align/parsing/justify-tracks-computed.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Grid Level 3: getComputedStyle().justifyContent</title>
+<link rel="help" href="https://drafts.csswg.org/css-grid-3/#tracks-alignment">
+<meta name="assert" content="justify-tracks computed value is as specified.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/computed-testcommon.js"></script>
+</head>
+<body>
+<div id="target"></div>
+<script>
+test_computed_value("justify-tracks", "normal");
+
+test_computed_value("justify-tracks", "space-between");
+test_computed_value("justify-tracks", "space-around");
+test_computed_value("justify-tracks", "space-evenly");
+test_computed_value("justify-tracks", "stretch");
+
+test_computed_value("justify-tracks", "center");
+test_computed_value("justify-tracks", "start");
+test_computed_value("justify-tracks", "end");
+test_computed_value("justify-tracks", "flex-start");
+test_computed_value("justify-tracks", "flex-end");
+test_computed_value("justify-tracks", "unsafe end");
+test_computed_value("justify-tracks", "safe flex-start");
+test_computed_value("justify-tracks", "left");
+test_computed_value("justify-tracks", "unsafe right");
+
+test_computed_value("justify-tracks", "normal, normal", "normal")
+</script>
+</body>
+</html>