mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 21:58:41 +02:00
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
25 lines
1.1 KiB
HTML
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-y with invalid values</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-4/#propdef-background-position-y">
|
|
<meta name="assert" content="background-position-y supports only the grammar '[ center | [ top | bottom | y-start | y-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-y", "left");
|
|
test_invalid_value("background-position-y", "right");
|
|
test_invalid_value("background-position-y", "x-start");
|
|
test_invalid_value("background-position-y", "x-end");
|
|
test_invalid_value("background-position-y", "center 10px");
|
|
test_invalid_value("background-position-y", "20% top");
|
|
test_invalid_value("background-position-y", "bottom top");
|
|
test_invalid_value("background-position-y", "y-start center");
|
|
test_invalid_value("background-position-y", "top, center bottom");
|
|
</script>
|
|
</body>
|
|
</html>
|