summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/resize-value-compared.html
blob: 51cd38c29830d34a0438a3a4cbba987ccef538f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<p>
    Test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=9694">https://bugs.webkit.org/show_bug.cgi?id=9694</a>
    resize value not compared</i>.
</p>
<p>
    This box should have a working resize corner:
</p>
<div id="target" style="width: 50px; height: 50px; overflow: hidden; border: solid;"></div>
<pre id="console"></pre>
<script>
    function log(message)
    {
        document.getElementById("console").appendChild(document.createTextNode(message + "\n"));
    }

    if (window.testRunner)
        testRunner.dumpAsText();

    var target = document.getElementById("target");
    target.style.resize = "both";
    var computedStyle = getComputedStyle(target);
    log(computedStyle.resize === "both" ? "PASS" : "FAIL");
</script>