Closed Bug 184099 Opened 23 years ago Closed 17 years ago

table and caption jump at arbitrary calculation threshold

Categories

(Core :: Layout: Tables, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: fantasai.bugs, Assigned: bernd_mozilla)

Details

(Keywords: css2, testcase)

Attachments

(1 file)

Overview: The caption + table layout calculations seem to switch algorithms at an arbitrary threshold. Steps to Reproduce: 1. Load testcase in a Mozilla window. Don't maximize the window, but make it big. 2. Grab the side of the window and slowly shrink it horizontally. At one point, right before the caption switches to three lines, both the table and the caption will jump and the margins to the left of the table and the right of the caption will equalize. Expected Results: Smooth transition as the window shrinks. Tested on Mozilla nightly (build id: 2002120604) on Win2k Additional Comments: Try the same thing with attachment 104325 [details] (negative margin + width testcase in bug 3166). The negative margin jumps to zero, and if you keep shrinking, there are all kinds of strange painting problems, and horizontal scrollbars don't appear when needed. I'm not sure if this is the same bug or not.
Attached file testcase
Keywords: testcase
Priority: -- → P3
I have encountered a similar rendering problem in a table with a caption under both Mozilla 1.7.1 and Firefox 0.9.2. When the browser window is wide enough (i.e. wider than the natural width of the table + the width of some white space + the width of the actual vertical scrollbar), the caption renders properly (the text is centered across the table, and the CSS background colour spans the complete width of the table). The width of the required white space seems close to the width of a vertical scrollbar, but that may just be a coincidence. However, when the window is even just a *tiny* bit too narrow, the caption collapses to the width of the caption text; the text is pushed all the way to the left of the table and the background colour only spans the text (i.e. it no longer spans the complete table). The transition from one behaviour to the other is very abrupt.
this is wfm now as the caption shrinks to min size.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: