gecko-dev/testing/web-platform/tests/css/css-layout-api/position-fragment-ref.html
Ian Kilpatrick 79ffedd172 Bug 1448441 [wpt PR 10161] - [css-layout-api] Allow developers to position fragments., a=testonly
Automatic update from web-platform-tests[css-layout-api] Allow developers to position fragments.

This implements the LayoutFragment.inlineOffset and
LayoutFragment.blockOffset attributes.

The tests added simply re-create the reference by setting these two
attributes in different text directions and writing modes.

Change-Id: I1865403ca12e3b174738ee93320eae5ba16ac292
Bug: 726125
Reviewed-on: https://chromium-review.googlesource.com/971832
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#546018}

wpt-commits: 8ec345bcd24282ce94960fc0b11ca057bec393be
wpt-pr: 10161
wpt-commits: 8ec345bcd24282ce94960fc0b11ca057bec393be
wpt-pr: 10161
2018-04-15 08:36:10 +01:00

33 lines
484 B
HTML

<!DOCTYPE html>
<style>
.result {
position: relative;
background: green;
width: 100px;
height: 100px;
}
.result-child-1 {
background: rebeccapurple;
width: 10px;
height: 20px;
position: absolute;
top: 25px;
left: 5px;
}
.result-child-2 {
background: rebeccapurple;
width: 15px;
height: 25px;
position: absolute;
top: 60px;
left: 50px;
}
</style>
<div class="result">
<div class="result-child-1"></div>
<div class="result-child-2"></div>
</div>