Bug 32855

Summary: when parent_width%5==0 a_width+b_width==parent_width
Product: WebKit Reporter: MarkerKing <majkandy>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: majkandy
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
Attachments:
Description Flags
bug html
none
test case none

MarkerKing
Reported 2009-12-22 00:46:12 PST
when parent width%5==0 a_width+b_width==parent_width see it in bug.zip
Attachments
bug html (666 bytes, application/x-zip-compressed)
2009-12-22 00:48 PST, MarkerKing
no flags
test case (1.08 KB, text/html)
2009-12-22 10:47 PST, Alexey Proskuryakov
no flags
MarkerKing
Comment 1 2009-12-22 00:48:39 PST
Created attachment 45370 [details] bug html
Mark Rowe (bdash)
Comment 2 2009-12-22 00:55:09 PST
Please describe precisely the problem you’re seeing. I can’t make any sense of the pseudo-code in your comment, and the attached test case doesn’t do much to clarify the problem either. It would also be preferable to not zip a test case when attaching it to a bug… if you do that then it is no longer possible to easily click through to it and view the test case in the browser. Instead I have to download the zip file, expand it, then open the enclosed file.
MarkerKing
Comment 3 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>
Alexey Proskuryakov
Comment 4 2009-12-22 10:47:57 PST
Created attachment 45392 [details] test case Same test case, as an attachment.
Alexey Proskuryakov
Comment 5 2009-12-22 10:49:23 PST
Safari behavior on this test is identical to Firefox, as far as I can tell. Please feel free to reopen the bug with an explanation of what the problem is.
Note You need to log in before you can comment on or make changes to this bug.