Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / object-sizing-no-width-height-change-content-box-size.xhtml
blob65465372b5e54c1efbdd79e7ce7acfd2faa6c609
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
6 <style>
7 object {
8 background: red;
10 </style>
11 </head>
12 <body onload="runRepaintAndPixelTest()">
13 <!-- No red should be visible after the resizing -->
14 <div id="contentBox" style="width: 200px; height: 400px; border: 1px solid red;">
15 <object data="resources/embedded.svg" width="100%" height="100%" type="image/svg+xml"/>
16 </div>
18 <script>
19 function repaintTest() {
20 document.getElementById("contentBox").style.setProperty("width", "400px");
22 </script>
23 </body>
24 </html>