gecko-dev/testing/web-platform/tests/css/css-position/parsing/z-index-invalid.html
Joonghun Park 3972277760 Bug 1529438 [wpt PR 15481] - Make calc() function can be used in any place that only accepts integer., a=testonly
Automatic update from web-platform-tests
Make calc() function can be used in any place that only accepts integer.

https://www.w3.org/TR/css-values-4/#calc-type-checking spec
says that calc() function that resolve to <number> can be used
in any place that only accepts <integer>.
This change makes calc() function's behavior to comply with the spec.

Bug: 931216
Change-Id: Iac9ad21d664bb60538d40ab42cbb8153de6db89f
Reviewed-on: https://chromium-review.googlesource.com/c/1478852
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Reviewed-by: Eric Willigers <ericwilligers@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634955}

--

wpt-commits: 50b5ebf1abd93b25c1f820c1d7bf49d051c33afb
wpt-pr: 15481
2019-03-16 12:13:26 +00:00

20 lines
681 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Positioned Layout Module Level 3: parsing z-index with invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-position/#propdef-z-index">
<meta name="assert" content="z-index supports only the grammar 'auto | <integer>'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_invalid_value("z-index", "none");
test_invalid_value("z-index", "10px");
test_invalid_value("z-index", "0.5");
test_invalid_value("z-index", "auto 123");
</script>
</body>
</html>