| Index: LayoutTests/fast/repaint/padding-keeping-content-size.html
|
| diff --git a/LayoutTests/fast/repaint/padding-keeping-content-size.html b/LayoutTests/fast/repaint/padding-keeping-content-size.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fad6ec49ce89ab1e18e25caa0dc7aaa808a01357
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/repaint/padding-keeping-content-size.html
|
| @@ -0,0 +1,32 @@
|
| +<!DOCTYPE HTML>
|
| +<script src="resources/text-based-repaint.js"></script>
|
| +<script>
|
| +function repaintTest()
|
| +{
|
| + // Both targets' visual size expand. Should full repaint.
|
| + document.getElementById('target1').style.padding = '20px';
|
| + document.getElementById('target2').style.padding = '20px';
|
| +}
|
| +window.onload = runRepaintTest;
|
| +</script>
|
| +<style>
|
| +body {
|
| + margin: 0;
|
| +}
|
| +.outer {
|
| + width: 100px;
|
| + height: 100px;
|
| + position: absolute;
|
| + background-color: green;
|
| +}
|
| +#target2 {
|
| + top: 200px;
|
| +}
|
| +.inner {
|
| + width: 100%;
|
| + height: 100%;
|
| + background-color: yellow;
|
| +}
|
| +</style>
|
| +<div id="target1" class="outer"></div>
|
| +<div id="target2" class="outer"><div class="inner"></div></div>
|
|
|