Last Comment Bug 144392 - horizontal margins are ignored when table width is greater than 100%
: horizontal margins are ignored when table width is greater than 100%
DUPEME [CSS1-5.5.4]
: css1, testcase
Product: Core
Classification: Components
Component: Layout: Block and Inline (show other bugs)
: Trunk
: All All
-- normal with 1 vote (vote)
: ---
Assigned To: layout.block-and-inline
: Hixie (not reading bugmail)
: Sean Voisen (:svoisen)
Depends on:
  Show dependency treegraph
Regressed by:
Reported: 2002-05-14 03:27 PDT by Uwe Schröder
Modified: 2008-11-23 06:47 PST (History)
5 users (show)
bernd_mozilla: in-testsuite?
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

Andreas' testcase (521 bytes, text/html)
2002-06-01 04:14 PDT, Boris 'pi' Piwinger
no flags Details

Description User image Uwe Schröder 2002-05-14 03:27:03 PDT
If width is set to a value > 100% on a table element, margin-left is forced to
zero. See URL for a test case.

Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.0rc1) Gecko/20020417
Comment 1 User image Boris 'pi' Piwinger 2002-05-14 05:14:04 PDT
I see it on Linux -> OS/Platform=ALL

There is probably already a bug covering this -> Whiteboard->DUPEME

Comment 2 User image Marcus Campbell 2002-05-14 05:51:04 PDT
Confirmed (2002051308, WinNT)

The code for handling this (nsHTMLReflowState.cpp - I think) says: "Special
rules for tables. In general, tables will stick to the left edge when they are
too large otherwise they behave like blocks."

Anyone know why? I can't find anything relating to this. Unless specified
otherwise, I would always expect them to behave like blocks. 
Comment 3 User image Andreas Borutta 2002-05-31 16:22:05 PDT
A valid testcase with negativ left margin and a width over 100% for the TABLE
[Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.0rc3) Gecko/20020523]


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
<title>Negative margins</title>
<style type="text/css">
margin-left: 6%;
margin-left: -6.38%;
width: 106.38%;
background-color: yellow;
    <td>If you see the tablecell with the yellow background flush left with the
edge of the window, then it's not a bug.</td>
Comment 4 User image David Baron :dbaron: 🏴󠁵󠁳󠁣󠁡󠁿 ⌚UTC-7 2002-05-31 16:30:58 PDT
Comment 5 User image Boris 'pi' Piwinger 2002-06-01 04:14:02 PDT
Created attachment 85898 [details]
Andreas' testcase
Comment 6 User image Boris Zbarsky [:bzbarsky, bz on IRC] 2003-04-27 00:15:23 PDT
Comment 7 User image David Baron :dbaron: 🏴󠁵󠁳󠁣󠁡󠁿 ⌚UTC-7 2003-04-28 08:57:22 PDT
I'd think this is more likely a block problem.
Comment 8 User image Bernd 2008-11-23 06:47:48 PST
this is wfm with current trunk

Note You need to log in before you can comment on or make changes to this bug.