Closed Bug 206516 Opened 17 years ago Closed 14 years ago

change display property to none and block breaks table cell rendering


(Core :: Layout: Tables, defect)

Not set





(Reporter: osvaldo, Assigned: bernd_mozilla)




(Keywords: testcase)


(7 files, 3 obsolete files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030317
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030317

Try check/uncheck for many times the radioboxes in page: and you will see the problem.

Reproducible: Always

Steps to Reproduce:
1. enter in
2. check/uncheck radioboxes in page (many times)
3. done

Actual Results:  
The page render crashes (table column)

Expected Results:  
Disable/Enable table columns visibility.
The page is setting table elements (tr and td) to be display:block.  We have
some existing issues with this (not disposing of pseudo-frames properly), but
even if those were fixed the page layout would still be "broken" (because CSS
table display types are completely broken in IE and the page expects the IE
behavior).  Using table-row and table-cell for the display, as appropriate, will
work in Mozilla and other CSS2-compliant browsers (but not in CSS1 browsers like

Over to tables to dup to the bug on pseudo-frame issues.
Assignee: dom_bugs → table
Component: DOM Style → Layout: Tables
QA Contact: ian → madhur
Whiteboard: DUPEME
checked the url on winXP and Linux on 2003-05-28trunk builds 

Osvaldo, please check this again in the latest build and if u do get a crash,
provide the talkback crash id number or the stack signature.
testcase has gone :-(
Osvaldo could you please attach the testcase to the bug just hit the Create a
New Attachment link and follow the instruction. I suspect however that this bug
is a dupe of 77019 which hopefully will be fixed in a near future
Depends on: 77019
Attached file Testcase (obsolete) —
Osvaldo, is your testcase just a html page? attach the html instead of the
archive please. I can't open the archive.
Attached file testcase html file (obsolete) —
Attached file testcase css file
Attached file testcase js file
the testcase is:
1 .html
1 .css
1 .js

I will attach the 3 items separated...
Attachment #140618 - Attachment is obsolete: true
Attachment #140740 - Attachment is obsolete: true
Resummarizing to make it clear what the bug is about.  Testcase never uses
"visibility" and this has nothing to do with bug 77019
Depends on: 162063
No longer depends on: 77019
Summary: change visibility attribute crashes elements rendering → change display property to none and block breaks table cell rendering
Attached file reproduces bug
Windows XP and 2000, current Mozilla and Foxfire. I could not get a crash, but I
get the described layout problems. Can we move this to confirmed? (attached
another reproduction case)
We can't move it to confirmed, since it's a duplicate (at least the layout
problems in your testcase are duplicates).  Note the DUPEME keyword.

Also note that even if the layout problems were fixed your testcase would still
be "broken" because putting both of those cells in the first column when that
"show" function runs is correct per the CSS spec.
Keywords: testcase
Attached file reduced testcase
Attached patch patchSplinter Review
This fixes a problem in block layout, but leaves the frame construction issue.
The block problem is that the block caches the mAscent and if there are no
lines inside the block the cached value is reported to the containing table
Assignee: layout.tables → bernd_mozilla
Ever confirmed: true
Bernd, you want to spin that off into a separate bug, or check it in under this one?
Just the block reflow issue here and 162063 for the frame issue. The fix here
will not complete give the space back as the remaining anonymous table cells
will have their cellpadding cellspacing still applied.
Attachment #189538 - Flags: superreview?(roc)
Attachment #189538 - Flags: review?(roc)
Attachment #189538 - Flags: superreview?(roc)
Attachment #189538 - Flags: superreview+
Attachment #189538 - Flags: review?(roc)
Attachment #189538 - Flags: review+
fix checked in the reminder is bug 162063
Closed: 15 years ago
Resolution: --- → FIXED
Maybe this should be done on branch

the patch seems to be simple (any regression) ?

Flags: blocking1.8b5?
Flags: blocking1.8b4?
> Maybe this should be done on branch

If you feel that way, request approval for the patch (see the flags on the patch
itself) and explain in the approval request why this is needed and why it's very

> the patch seems to be simple (any regression) ?

We probably won't know for at least a few weeks.  Unless you have a source of
knowledge I'm not aware of.


Why?  It's fixed.  Whatever happens on branch doesn't affect the resolution,
which tracks things on trunk.

Not a branch blocker in any case, unless this is a very common problem out
there.  If it is, please point out the sites broken by it.
Flags: blocking1.8b5?
Flags: blocking1.8b5-
Flags: blocking1.8b4?
Flags: blocking1.8b4-
The reduced testcase shows red again. As I did not checkin the test into the layout regression tests I can not pinpoint when this went bad again.
Resolution: FIXED → ---
"DUPEME" seems obsolete if work's going on here.
Whiteboard: DUPEME
Blocks: 300909
the regression in the reduced testcase has been fixed by the reflow branch
Closed: 15 years ago14 years ago
Depends on: reflow-refactor
Flags: in-testsuite?
Resolution: --- → FIXED
Attached patch Reftests (obsolete) — Splinter Review
These are based on the last testcase posted to this bug. I'm a bit concerned that this test will have to be marked as random, though. I've noticed that when I load the test, if I refresh the page quickly, I will sometimes see a very brief flash or red under the green cell. Depending on when the reftest takes the screenshot, that might pose a problem.
Attachment #257571 - Flags: review?(dbaron)
Attached patch Reftests round 2Splinter Review
Whoops, forgot to remove the table background color from the reference
Attachment #257571 - Attachment is obsolete: true
Attachment #257572 - Flags: review?(dbaron)
Attachment #257571 - Flags: review?(dbaron)
Comment on attachment 257572 [details] [diff] [review]
Reftests round 2

Checked in after testing in pre- and post-reflow-branch builds.
Attachment #257572 - Flags: review?(dbaron) → review+
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.