12345678910111213141516171819202122232425262728 |
- <!DOCTYPE HTML>
- <script src="resources/text-based-repaint.js"></script>
- <script>
- function repaintTest()
- {
- document.getElementById('target').style.verticalAlign = '50px';
- }
- window.onload = runRepaintAndPixelTest;
- </script>
- <style>
- body {
- margin: 0;
- }
- .other {
- width: 20px;
- height: 20px;
- background-color: blue;
- display: inline-block;
- }
- #target {
- width: 100px;
- height: 100px;
- background-color: green;
- display: inline-block;
- vertical-align: 20px;
- }
- </style>
- <div class="other"></div><div id="target"></div><div class="other"></div>
|