mirror of
https://github.com/servo/servo.git
synced 2025-08-18 11:55:39 +01:00
Update web-platform-tests to revision e3698c7bb3c309df69134e9bc0a375f00535e226
This commit is contained in:
parent
1b38197812
commit
e447ba9856
102 changed files with 1364 additions and 221 deletions
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<title>Reusing cached lines multiple times should not crash</title>
|
||||
<link rel="author" href="mailto:kojii@chromium.org">
|
||||
<link rel="help" href="https://crbug.com/1102083">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<a><object id="target"><b></b></object><br></a>
|
||||
<script>
|
||||
test(() => {
|
||||
const target = document.getElementById('target');
|
||||
target.style.setProperty('transition-delay', '9999s');
|
||||
document.body.offsetWidth;
|
||||
target.style.transform = 'scale(1)';
|
||||
document.body.offsetHeight;
|
||||
}, 'No crash');
|
||||
</script>
|
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Detaching positioned object before it is laid out should not crash</title>
|
||||
<link rel="author" href="mailto:kojii@chromium.org">
|
||||
<link rel="help" href="https://crbug.com/1101986">
|
||||
<meta name="assert" content="Detaching positioned object before it is laid out should not crash">
|
||||
<style>
|
||||
.float {
|
||||
float: left;
|
||||
}
|
||||
.abs {
|
||||
position: absolute;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<body>
|
||||
<div id="container">text<span id="target" class="float"></span></div>
|
||||
</body>
|
||||
<script>
|
||||
test(() => {
|
||||
document.body.offsetTop;
|
||||
let target = document.getElementById('target');
|
||||
|
||||
// Change `#target` from floating object to positioned object.
|
||||
target.classList.add('abs');
|
||||
|
||||
// Style recalc without layout, and detach.
|
||||
getComputedStyle(target).display;
|
||||
container.style.display = "none";
|
||||
}, 'No crash or DCHECK failure');
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue