mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
add tests for inline-block element opacity only change incremental reflow
This commit is contained in:
parent
512764b7da
commit
4bb9de4ea5
3 changed files with 67 additions and 0 deletions
|
@ -2496,6 +2496,18 @@
|
||||||
"url": "/_mozilla/css/inline_block_min_width.html"
|
"url": "/_mozilla/css/inline_block_min_width.html"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"css/inline_block_opacity_change.html": [
|
||||||
|
{
|
||||||
|
"path": "css/inline_block_opacity_change.html",
|
||||||
|
"references": [
|
||||||
|
[
|
||||||
|
"/_mozilla/css/inline_block_opacity_change_ref.html",
|
||||||
|
"=="
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"url": "/_mozilla/css/inline_block_opacity_change.html"
|
||||||
|
}
|
||||||
|
],
|
||||||
"css/inline_block_overflow.html": [
|
"css/inline_block_overflow.html": [
|
||||||
{
|
{
|
||||||
"path": "css/inline_block_overflow.html",
|
"path": "css/inline_block_overflow.html",
|
||||||
|
@ -11764,6 +11776,18 @@
|
||||||
"url": "/_mozilla/css/inline_block_min_width.html"
|
"url": "/_mozilla/css/inline_block_min_width.html"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"css/inline_block_opacity_change.html": [
|
||||||
|
{
|
||||||
|
"path": "css/inline_block_opacity_change.html",
|
||||||
|
"references": [
|
||||||
|
[
|
||||||
|
"/_mozilla/css/inline_block_opacity_change_ref.html",
|
||||||
|
"=="
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"url": "/_mozilla/css/inline_block_opacity_change.html"
|
||||||
|
}
|
||||||
|
],
|
||||||
"css/inline_block_overflow.html": [
|
"css/inline_block_overflow.html": [
|
||||||
{
|
{
|
||||||
"path": "css/inline_block_overflow.html",
|
"path": "css/inline_block_overflow.html",
|
||||||
|
|
26
tests/wpt/mozilla/tests/css/inline_block_opacity_change.html
Normal file
26
tests/wpt/mozilla/tests/css/inline_block_opacity_change.html
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="match" href="inline_block_opacity_change_ref.html">
|
||||||
|
<style>
|
||||||
|
#a {
|
||||||
|
background-color: green;
|
||||||
|
display: inline-block;
|
||||||
|
width: 1em;
|
||||||
|
opacity: 0.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
#a.go {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<span style="transition: opacity .1s ease-out;" id="a">a</span>
|
||||||
|
<script>
|
||||||
|
document.body.offsetWidth; // force layout
|
||||||
|
document.querySelector('#a').classList.add('go');
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,17 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<style>
|
||||||
|
#a {
|
||||||
|
background-color: green;
|
||||||
|
display: inline-block;
|
||||||
|
width: 1em;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<span id="a">a</span>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue