| Index: LayoutTests/fast/layers/opacity-change-stacking-context.html
|
| diff --git a/LayoutTests/fast/layers/opacity-change-stacking-context.html b/LayoutTests/fast/layers/opacity-change-stacking-context.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b9aa43ac03e95e6f02f4063be7e32ec428a28c4a
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/layers/opacity-change-stacking-context.html
|
| @@ -0,0 +1,25 @@
|
| +<!DOCTYPE html>
|
| +
|
| +<script src="../../resources/js-test.js"></script>
|
| +
|
| +<style>
|
| +#target {
|
| + top: 40px;
|
| + width: 150px;
|
| + height: 75px;
|
| + background-color: yellow;
|
| + -webkit-transform: translateZ(0);
|
| + opacity: 0;
|
| +}
|
| +</style>
|
| +
|
| +<div id="target"></div>
|
| +
|
| +<script>
|
| +description("Test that opacity changes from less than 1 to 1 don't cause layout if the layer remains a stacking context");
|
| +var div = document.getElementById('target');
|
| +div.offsetTop;
|
| +div.style.opacity = 1;
|
| +shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
|
| +shouldBe("internals.needsLayoutCount()", "0");
|
| +</script>
|
|
|