blob: 9ae8489333fbdff59e0bcfe495caca60fa5c91c2 [file] [log] [blame]
<!DOCTYPE html>
.flex {
display: flex;
width: 500px;
.wide {
width: 600px;
flex: none;
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<p>You should see two identical-looking lines, both with a radio button at the
<div class="flex">
<input type="radio" id="check">
<div class="wide">Text</div>
<input type="radio" style="vertical-align: top;" id="ref"><span>Text</span>
var ref = document.getElementById("ref");
var check = document.getElementById("check");
test(function() {
assert_equals(ref.offsetWidth, check.offsetWidth, "width should be equal");
assert_equals(ref.offsetHeight, check.offsetHeight,
"height should be equal");
}, "two radio button sizes are identical");