mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update flags for absolutely positioned elements on style changes
Fixes #17307.
This commit is contained in:
parent
f01e1da01e
commit
2aef2af9b8
7 changed files with 96 additions and 5 deletions
|
@ -1,3 +0,0 @@
|
|||
[dynamic-top-change-001.htm]
|
||||
type: reftest
|
||||
expected: FAIL
|
|
@ -2435,6 +2435,18 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"css/incremental_position.html": [
|
||||
[
|
||||
"/_mozilla/css/incremental_position.html",
|
||||
[
|
||||
[
|
||||
"/_mozilla/css/incremental_position_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/incremental_text_color_a.html": [
|
||||
[
|
||||
"/_mozilla/css/incremental_text_color_a.html",
|
||||
|
@ -7911,6 +7923,11 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"css/incremental_position_ref.html": [
|
||||
[
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/incremental_text_color_ref.html": [
|
||||
[
|
||||
{}
|
||||
|
@ -22808,6 +22825,14 @@
|
|||
"3235e9662e37dc723364a1dd39e07157868dd290",
|
||||
"support"
|
||||
],
|
||||
"css/incremental_position.html": [
|
||||
"849f3f5ae1df8ecf3bcf3f1723b5a755afeb3316",
|
||||
"reftest"
|
||||
],
|
||||
"css/incremental_position_ref.html": [
|
||||
"67ab51b29fb015b82bf98942e2e886b3de5ea2cd",
|
||||
"support"
|
||||
],
|
||||
"css/incremental_text_color_a.html": [
|
||||
"1846e2691b150cd2eb0b126c6d8f68f47d683fab",
|
||||
"reftest"
|
||||
|
|
27
tests/wpt/mozilla/tests/css/incremental_position.html
Normal file
27
tests/wpt/mozilla/tests/css/incremental_position.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
<!doctype html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Incremental absolute position test</title>
|
||||
<link rel="match" href="incremental_position_ref.html">
|
||||
<style>
|
||||
#rect {
|
||||
position: absolute;
|
||||
border: 1px solid red;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="rect"></div>
|
||||
<script>
|
||||
window.onload = function() {
|
||||
document.body.offsetWidth; // force layout
|
||||
var e = document.getElementById("rect");
|
||||
e.style.left = "100px";
|
||||
document.documentElement.classList.remove('reftest-wait');
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
19
tests/wpt/mozilla/tests/css/incremental_position_ref.html
Normal file
19
tests/wpt/mozilla/tests/css/incremental_position_ref.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Incremental absolute position reference</title>
|
||||
<style>
|
||||
#rect {
|
||||
position: absolute;
|
||||
border: 1px solid red;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
left: 100px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="rect"></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue