mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 04:39:07 -10:00
Automatic update from web-platform-testsAdd and correct CSSOM spec references Many CSSOM tests were missing spec references or had incorrect ones; add/update these references. -- Move GetBoundingRect.html getBoundingClientRec is defined in CSSOM View, not CSSOM. wpt-commits: 825f054d0d8f1f60ef13e36b46d6ea97ea87cc15, b52a19067b803b35f9cdd588f8302a289e20446a wpt-pr: 10005 wpt-commits: 825f054d0d8f1f60ef13e36b46d6ea97ea87cc15, b52a19067b803b35f9cdd588f8302a289e20446a wpt-pr: 10005
32 lines
774 B
HTML
32 lines
774 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>getBoundingClientRect</title>
|
|
<link rel="help" href="https://drafts.csswg.org/cssom-view/#dom-element-getboundingclientrect">
|
|
<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>
|