mirror of
https://github.com/servo/servo.git
synced 2025-08-25 07:08:21 +01:00
Fix #6799: set stacking_context_position correctly on
fragment_border_iterator
This commit is contained in:
parent
2151a1f459
commit
33a46597ed
5 changed files with 67 additions and 18 deletions
30
tests/wpt/web-platform-tests/cssom/GetBoundingRect.html
Normal file
30
tests/wpt/web-platform-tests/cssom/GetBoundingRect.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue