gecko-dev/testing/web-platform/tests/css/css-backgrounds/parsing/background-position-x-invalid.html
moz-wptsync-bot 612b1c1903 Bug 1557435 [wpt PR 16867] - CSS: Parsing tests for background-position longhands, a=testonly
Automatic update from web-platform-tests
CSS: Parsing tests for background-position longhands

Inheritance, parsing and computed value tests for
background-position-x, background-position-y
https://drafts.csswg.org/css-backgrounds-4/#background-position-longhands

BUG=964885

Change-Id: I55630b41918557be536f28e3eb640bb3fc803c4f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1614007
Commit-Queue: Eric Willigers <ericwilligers@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#661315}

--

wp5At-commits: 5c72c6bfc27b86c64ee770480de4a0bcea2ca639
wpt-pr: 16867
2019-06-19 11:05:40 -07:00

25 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Backgrounds and Borders Module Level 4: parsing background-position-x with invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-4/#propdef-background-position-x">
<meta name="assert" content="background-position-x supports only the grammar '[ center | [ left | right | x-start | x-end ]? <length-percentage>? ]#'.">
<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("background-position-x", "top");
test_invalid_value("background-position-x", "bottom");
test_invalid_value("background-position-x", "y-start");
test_invalid_value("background-position-x", "y-end");
test_invalid_value("background-position-x", "center 10px");
test_invalid_value("background-position-x", "20% left");
test_invalid_value("background-position-x", "right left");
test_invalid_value("background-position-x", "x-start center");
test_invalid_value("background-position-x", "left, center right");
</script>
</body>
</html>