Closed Bug 108665 Opened 23 years ago Closed 21 years ago

js onClick at image for changing <br> does work only after resize

Categories

(Core :: Layout: Block and Inline, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 69518

People

(Reporter: diethelms, Unassigned)

References

()

Details

(Keywords: testcase, Whiteboard: [bae:20011126][HTML4-9.3.2.1])

Attachments

(1 file, 1 obsolete file)

<html><head><title>Test</title> </head><body> <img src="../../../src/logo.gif" width="106" height="109" border="0" align="left" alt="Logo" onClick="document.getElementById('Umbruch').clear='all'"> Dieser Text fliesst um das Logo herum, weil dies im align-Attribut des Logos so angegeben ist.<br id="Umbruch"> Gilt das auch bei diesem Text? </body></html> If you run this in Internetexplorer, the last part of the text is diaplayed below the image. In Mozilla, there is no reaction until you resize the browser window.
The DOM is correctly generating a REFLOW style hint on this change (see nsHTMLBRElement::GetMappedAttributeImpact). However, the reflow is not being performed correctly. I tried changing that style hint, and I have to set it to NS_STYLE_HINT_RECONSTRUCT_ALL to make this bug go away (a possible short-term solution to the problem, but seems like a hack). The problem would seem to be on the reflow end of things.
Assignee: asa → attinasi
Status: UNCONFIRMED → NEW
Component: Browser-General → Layout
Ever confirmed: true
OS: Windows 2000 → All
QA Contact: doronr → petersen
Hardware: PC → All
Attached file testcase (obsolete) (deleted) —
Works for me using 2001111903 build on WINNT.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Target Milestone: --- → mozilla1.1
Attached file Testcase using image (deleted) —
Attachment #56711 - Attachment is obsolete: true
reopening. The <button> testcase seems to be reflowing correctly, but one using an image still is not, so the original problem persists
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
confirm issue using build from 2001112603
Keywords: testcase
Whiteboard: [bae:20011126]
The problem still exists, using build 2002112008. Testcase: http://selfhtml.teamone.de/javascript/objekte/anzeige/htmlelemente_br.htm
.
Assignee: attinasi → other
Status: REOPENED → NEW
QA Contact: cpetersen0953 → ian
Target Milestone: mozilla1.1alpha → ---
->Block & Inline
Assignee: other → block-and-inline
Component: Layout → Layout: Block & Inline
Whiteboard: [bae:20011126] → [bae:20011126][HTML4-9.3.2.1]
*** This bug has been marked as a duplicate of 69518 ***
Status: NEW → RESOLVED
Closed: 23 years ago21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: