Closed Bug 370337 Opened 18 years ago Closed 18 years ago

display:inline label nested inside display:block label shows as block

Categories

(Core :: Layout, defect)

1.8 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: wizofaus, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 If one <label> contains another and the first has "display:block" style, then the second label will also be shown as a block element, even if explicitly marked as "display:inline" (which shouldn't be necessary anyway). Reproducible: Always Steps to Reproduce: Save following code into file: <label style="display:block">Outer label<label>Inner label</label></label> and display. Actual Results: Shows "Outer label" and "Inner label" on two separate lines. Expected Results: Inner label should be on the same line as "outer label". Works fine for, e.g., a "span" element. Works as expected under I.E.
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Version: unspecified → 1.8 Branch
See http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.9.1 - the content of label is %inline -label, so what you've written is, after error correction, <label style="display:block">Outer label</label><label>Inner label</label>
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.