Closed Bug 1352400 Opened 8 years ago Closed 9 months ago

Inline tag br accepts margin styling

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1621387

People

(Reporter: john, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36 Steps to reproduce: Using the "Lobotomized Owl" selector on a content block with elements otherwise set to have no margin. Actual results: Firefox (and only Firefox) applied the selector to the inline br tag. Expected results: No margins should've been applied to the inline br tag.
Component: Untriaged → Layout
Keywords: testcase
Product: Firefox → Core
Priority: -- → P3
Severity: normal → S3
Duplicate of this bug: 1883280

Here's a testcase showing the issue a bit more clearly.

This isn't related to selector matching, but rather whether br elements do anything with margins that are explicitly applied to it. In Firefox, those margins do get honored. In other browsers, those margins seem to get ignored.

Marking as 'New' (i.e. confirmed) since there's a valid interop issue here (Firefox disagrees with Blink/WebKit). The interop situation in general around applying styles to br is a bit hazy, though (see e.g. bug 1547246 for other br styles having varying impact in Firefox vs. other browsers), and I'm not sure this behavior is well-specified.

Status: UNCONFIRMED → NEW
Ever confirmed: true
See Also: → 1547246

Ah, it seems we have bug 1621387 filed on this too, which has a bit more discussion and a spec issue associated with it. So even though this one's older, it's maybe best to use that as the canonical spot for this bug at this point.

Status: NEW → RESOLVED
Closed: 9 months ago
Duplicate of bug: 1621387
Resolution: --- → DUPLICATE
No longer duplicate of this bug: 1883280
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: