[Webkit-unassigned] [Bug 32855] when parent_width%5==0 a_width+b_width==parent_width
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 22 03:48:06 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=32855
--- Comment #3 from MarkerKing <majkandy at 126.com> 2009-12-22 03:48:03 PST ---
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>P</title>
<style type="text/css">
</style>
</head>
<body id="body" style="margin:0;padding:0;">
<div id="green" style="width:100%; background:green;">I'm green!</div>
<div id="red" style="width:20%; float:left; background:red;">I'm red!</div>
<div id="blue" style="width:80%; float:left; background:blue;">I'm blue!</div>
<input type="button" value="Our width?" onclick="showOurWidth()"/>
<input type="button" value="Open width%5==0" onclick="openWindow()"/>
<script type="text/javascript">
function getWidth(id) {
return document.getElementById(id).offsetWidth;
}
function showOurWidth() {
alert('Body width:'+getWidth('body'));
alert('Green width:'+getWidth('green'));
alert('Red width:'+getWidth('red'));
alert('Blue width:'+getWidth('blue'));
alert('Green width == Red+Blue =
'+(getWidth('green')==(getWidth('red')+getWidth('blue'))));
}
function openWindow() {
window.open(window.location, '', 'width=655, height300');
}
</script>
</body>
</html>
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list