| <!DOCTYPE html> |
| <!-- |
| | Ensures that even after we set the body's background-color to a |
| | non-transparent value, we can still adjust it later to be transparent and |
| | that style will be properly respected. The output of this test should be |
| | a purely transparent (alpha = 0) image. |
| --> |
| <html> |
| <head> |
| <style> |
| body { |
| background-color: blue; |
| } |
| </style> |
| <script> |
| if (window.testRunner) { |
| window.testRunner.waitUntilDone(); |
| } |
| |
| window.onload = function() { |
| if (window.testRunner) { |
| window.testRunner.DoNonMeasuredLayout(); |
| } |
| |
| document.body.style.backgroundColor = 'transparent'; |
| |
| if (window.testRunner) { |
| window.testRunner.DoNonMeasuredLayout(); |
| window.testRunner.notifyDone(); |
| } |
| } |
| </script> |
| </head> |
| <body> |
| </body> |
| </html> |