Closed Bug 311623 Opened 20 years ago Closed 19 years ago

{inc}table with width="95%" inside positioned div gets thinner when button in table is clicked

Categories

(Core :: Layout: Block and Inline, defect)

1.8 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: hufraser, Unassigned)

References

Details

(Keywords: regression, testcase, Whiteboard: [reflow-refactor])

Attachments

(2 files, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b5) Gecko/20051006 Firefox/1.4.1 The attached demo page gets narrower (and sometimes wider) when the button at the bottom ("click me!") is clicked or moused over with the left button depressed and the the "click me!" button having focus. The demo page has *no* javascript, just a DIV with "position:absolute" style and a table with 95% width. The button should do nothing, and does so in non-Moz browsers. Originally this came from an internet banking page, and it's annoying when you try to click a form submit button and it moves away from the mouse! I changed it to a normal "button" element to get rid of the form and simplify the page. Reproducible: Always Steps to Reproduce: 1. Open the attached bug demo. 2. Click / play with the button 3. reload the page to restore normal appearance Actual Results: table width changes Expected Results: page should not change - button does nothing I've only tried it on Firefox 1.5beta1/2 under win2000 so far but seems likely it's platform-neutral. Also occurs under Mozilla 1.8Beta.
Attached file minimal test case for bug (obsolete) —
changed testcase flag to "+" since I've made a stripped-down testcase (attached). I hope "+" is correct and it's not supposed to be "?".
Flags: testcase+
Changing testcase flag to testcase keyword. (The testcase flag has to do with inclusion in regression test suites.)
Component: General → Layout: Block and Inline
Flags: testcase+
Keywords: testcase
Product: Firefox → Core
QA Contact: general → layout.block-and-inline
Version: unspecified → 1.8 Branch
Regressed on trunk between 2004-10-29 and 2004-10-30. Pass: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8a5) Gecko/20041029 Firefox/0.9.1+ Fail: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8a5) Gecko/20041030 Firefox/0.9.1+
Keywords: regression
Confirmed using Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20051006 Firefox/1.6a1
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: script-free page changes width when button clicked or moused-over → table with width="95%" inside positioned div gets thinner when button in table is clicked
Attachment #198889 - Attachment is obsolete: true
With the new testcase, trunk 2004-10-29 and Firefox 1.0.7 fail too. The regression window in comment 4 might not be meaningful for figuring out what causes the bug.
Confirming on MacOS X (using Firefox 1.0.7) and changing hardware/OS to All.
OS: Windows 2000 → All
Hardware: PC → All
Found it occurs with links as well as buttons.
*** Bug 313167 has been marked as a duplicate of this bug. ***
Summary: table with width="95%" inside positioned div gets thinner when button in table is clicked → {inc}table with width="95%" inside positioned div gets thinner when button in table is clicked
Whiteboard: [reflow-refactor]
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20061208 Minefield/3.0a1 ID:2006120812 [cairo] Seems fixed after reflow branch landing
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061208 Minefield/3.0a1 Yep, seems fixed by reflow branch. All the testcases demonstrated the bug in a 2006-12-06 nightly, and they all seem to work correctly in a 2006-12-08 nightly.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: