gecko-dev/testing/web-platform/tests/css/css-position/parsing/bottom-computed.html
Eric Willigers f3e5383a52 Bug 1510061 [wpt PR 14240] - CSS: WPTs for Positioned Layout parsing, a=testonly
Automatic update from web-platform-tests
CSS: WPTs for Positioned Layout parsing

Test parsing and computed value for
https://drafts.csswg.org/css-position/

- bottom left right top
- position
- z-index
- inset-after inset-before inset-end inset-start (not currently implemented)

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

--

wpt-commits: 09972ca7bd566c05f4451b5dda4678e28850a563
wpt-pr: 14240
2018-12-11 15:50:01 +00:00

28 lines
823 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Positioned Layout Module Level 3: getComputedValue().bottom</title>
<link rel="help" href="https://drafts.csswg.org/css-position/#propdef-bottom">
<meta name="assert" content="bottom lengths are made absolute.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
</head>
<body>
<div id="target"></div>
<style>
#target {
font-size: 40px;
}
</style>
<script>
test_computed_value("bottom", "auto");
test_computed_value("bottom", "calc(10px + 0.5em)", "30px");
test_computed_value("bottom", "calc(10px - 0.5em)", "-10px");
test_computed_value("bottom", "-40%");
test_computed_value("bottom", "calc(50% + 60px)");
</script>
</body>
</html>