Fix #6799: set stacking_context_position correctly on

fragment_border_iterator
This commit is contained in:
Eloy Coto 2017-05-27 13:27:35 +02:00
parent 2151a1f459
commit 33a46597ed
5 changed files with 67 additions and 18 deletions

View file

@ -321172,6 +321172,12 @@
{}
]
],
"cssom/GetBoundingRect.html": [
[
"/cssom/GetBoundingRect.html",
{}
]
],
"cssom/MediaList.html": [
[
"/cssom/MediaList.html",
@ -553765,6 +553771,10 @@
"f0d47464da9d30e70733f09af78f3e9f982c4406",
"testharness"
],
"cssom/GetBoundingRect.html": [
"7e5a8b25753ac970c2d192376c9dd93943b3dbb5",
"testharness"
],
"cssom/MediaList.html": [
"21d9e43514fb3a7fbf8933429242dc544224ef24",
"testharness"

View file

@ -0,0 +1,30 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>getBoundingClientRect</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
#foo {
margin: 0px 0px 0px 5px;
transform: translate(10px, 200px);
position: fixed;
left: 5px;
background-color: red;
}
</style>
</head>
<body>
<div id="foo">
FOO
</div>
<script>
test(function () {
var foo = document.getElementById("foo").getBoundingClientRect();
assert_equals(foo.left, 20);
});
</script>
</body>
</html>