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%
Status: RESOLVED WORKSFORME
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)
Mentors:
http://bugzilla.ohrbelag.de/mozilla-b...
Depends on:
Blocks:
  Show dependency treegraph
 
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:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


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

Description 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 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

pi
Comment 2 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 Andreas Borutta 2002-05-31 16:22:05 PDT
A valid testcase with negativ left margin and a width over 100% for the TABLE
element.
[Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.0rc3) Gecko/20020523]

Andreas

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3corg/TR/html4/strict.dtd">
<html>
<head>
<title>Negative margins</title>
<style type="text/css">
body{ 
margin-left: 6%;
}
table{
margin-left: -6.38%;
width: 106.38%;
background-color: yellow;
}
</style>
</head>
<body>
  <table>
   <tr> 
    <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>
   </tr>
  </table>
</body>
</html>
Comment 4 David Baron :dbaron: ⌚️UTC-7 (review requests must explain patch) 2002-05-31 16:30:58 PDT
->Layout
Comment 5 Boris 'pi' Piwinger 2002-06-01 04:14:02 PDT
Created attachment 85898 [details]
Andreas' testcase
Comment 6 Boris Zbarsky [:bz] (Out June 25-July 6) 2003-04-27 00:15:23 PDT
.
Comment 7 David Baron :dbaron: ⌚️UTC-7 (review requests must explain patch) 2003-04-28 08:57:22 PDT
I'd think this is more likely a block problem.
Comment 8 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.