mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 14:20:14 +02:00
Automatic update from web-platform-tests [css-logical] WPTs for inset parsing inset is one to four values, each auto or a length-percentage. https://drafts.csswg.org/css-logical/#propdef-inset Change-Id: I3f1599e200fec16a709cc6404246a28c404805b7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1747488 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Eric Willigers <ericwilligers@chromium.org> Cr-Commit-Position: refs/heads/master@{#686337} -- wpt-commits: 3b5944691d24e19a3937671885abb749334e8d45 wpt-pr: 18376
27 lines
921 B
HTML
27 lines
921 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>CSS Logical Properties and Values: parsing inset with valid values</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-logical/#propdef-inset">
|
|
<meta name="assert" content="inset supports the full grammar '<'top'>{1,4}'.">
|
|
<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("inset", "auto");
|
|
test_valid_value("inset", "-10px");
|
|
|
|
test_valid_value("inset", "calc(-0.5em + 10px) -20%");
|
|
test_valid_value("inset", "auto auto", "auto");
|
|
|
|
test_valid_value("inset", "10px calc(-0.5em + 10px) -30px");
|
|
test_valid_value("inset", "auto auto auto", "auto");
|
|
|
|
test_valid_value("inset", "10px calc(-0.5em + 10px) auto -30px");
|
|
test_valid_value("inset", "auto auto auto auto", "auto");
|
|
</script>
|
|
</body>
|
|
</html>
|