Closed Bug 310553 Opened 19 years ago Closed 15 years ago

{inc}dynamically changing font-size in fixed width absolutely positioned box causes first text node not to wrap

Categories

(Core :: Layout: Positioned, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: stryker330, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(3 files, 1 obsolete file)

In an absolutely positioned box with fixed width, the first text node or text nodes separated only with <br>'s will not wrap after changing font-size. Resizing the window or min/maximizing won't fix it, but a manual "reflow" by changing the box's width to a small value and back will. However, this "reflow" sometimes doesn't clear the old display, leading to a visual artifact. In fact, repositioning or resizing the box via scripting will usually leads to such visual artifacts. The artifacts can be eliminated by resizing or min/maximizing the window. Aside: I'm finding so many things buggy with dynamically changing font-size. So far I've found a couple of issues that are probably the consequences of multiple bugs such as bug 310451, bug 271776, this, and probably more. All the bugs are triggered by dynamically changing font-size of an absolutely positioned box. All can be worked around by wrapping that box inside a relatively positioned box.
Attached file testcase (deleted) —
I should also mention that the second node (in this case, an <i> element) can overlap with first text node. However if the first word of the second node is large enough it will go to next line, leading to no overlap. I suspect this has something to do with bug 271776.
Oops, last testcase was misleading. Replacement
Attachment #197978 - Attachment is obsolete: true
This testcase shows that "first text node" includes text nodes past <br>'s. Also, interestingly, the reflow hack didn't work on the previous testcase. It works on this one w/o leaving any visual artifacts.
Keywords: testcase
Whiteboard: [reflow-refactor]
Bug still occurs in both SeaMonkey 2006120701 (pre reflow branch) and 2006120801 (post reflow branch) on Linux, although they are broken in slightly different ways.
OS: Windows XP → All
Whiteboard: [reflow-refactor]
Blocks: 407316
WFM as of Gecko/20090824 Firefox/3.5.3.
Status: NEW → RESOLVED
Closed: 15 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: