gecko-dev/testing/web-platform/tests/css/css-logical/parsing/inset-computed.html
Eric Willigers eab472e204 Bug 1572990 [wpt PR 18376] - [css-logical] WPTs for inset parsing, a=testonly
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
2019-08-15 02:17:00 +00:00

33 lines
1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Logical Properties and Values: getComputedStyle().inset</title>
<link rel="help" href="https://drafts.csswg.org/css-logical/#propdef-inset">
<meta name="assert" content="Computed value is as specified, with lengths made absolute.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<style>
#target {
font-size: 40px;
}
</style>
</head>
<body>
<div id="target"></div>
<script>
test_computed_value("inset", "auto");
test_computed_value("inset", "-10px");
test_computed_value("inset", "calc(10px - 0.5em) -20%", "-10px -20%");
test_computed_value("inset", "auto auto", "auto");
test_computed_value("inset", "10px calc(10px - 0.5em) -30px", "10px -10px -30px");
test_computed_value("inset", "auto auto auto", "auto");
test_computed_value("inset", "10px 20px auto -30px");
test_computed_value("inset", "auto auto auto auto", "auto");
</script>
</body>
</html>