chromium/third_party/blink/web_tests/fast/css/border-width-large.html

<!DOCTYPE HTML>
<html>
<head>
<title>Test for WebKit bug 18294 : Strange Result for getComputedStyle on borderWidth set in em</title>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<p id="description">Test for WebKit bug <a href="https://bugs.webkit.org/show_bug.cgi?id=18294">18294</a> : Strange Result for getComputedStyle on borderWidth set in em</p>
<div id="console"></div>

<div id="tests_container">

<div id="test" style="border-style:solid;font-size:100px;"></div>

</div>

<script>
    var test = document.getElementById("test");

    test.style.borderWidth = "120em 110em 100em 90.1em";
    var computedStyle = window.getComputedStyle(test, null);
    shouldBe("computedStyle.getPropertyValue('border-width')", "'12000px 11000px 10000px 9010px'");
    shouldBe("computedStyle.borderTopWidth","'12000px'");
    shouldBe("computedStyle.borderRightWidth","'11000px'");
    shouldBe("computedStyle.borderBottomWidth","'10000px'");
    shouldBe("computedStyle.borderLeftWidth","'9010px'");
    // clean up after ourselves
    var tests_container = document.getElementById("tests_container");
    tests_container.parentNode.removeChild(tests_container);
</script>
</body>
</html>