20 lines
686 B
HTML
20 lines
686 B
HTML
<script>
|
|
function test()
|
|
{
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
var radio = document.getElementById("radio");
|
|
var padding = getComputedStyle(radio, "").getPropertyValue("padding-left");
|
|
if (padding == "0px")
|
|
document.getElementById("result").innerHTML = "PASS";
|
|
else
|
|
document.getElementById("result").innerHTML = "FAIL: padding should be 0px but is " + padding;
|
|
}
|
|
</script>
|
|
<body onload="test()">
|
|
<p>This test checks the padding for radio buttons with no theme. This was wrong at one point because
|
|
of a typo in the html4.css file.</p>
|
|
<p id="result">FAIL</p>
|
|
<input id="radio" type="radio" style="-webkit-appearance:none">
|
|
</body>
|