mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 13:48:23 +02:00
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
33 lines
484 B
HTML
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>
|