it isn't possibly to apply styles to <br>

NEW
Unassigned

Status

()

12 years ago
10 years ago

People

(Reporter: amla70, Unassigned)

Tracking

({testcase})

Trunk
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

12 years ago
I didn't find any bug that addresses the br part of bug 38370, so according to Boris advice and three years later I'm filing this bug.

I've tried to apply any styling to <br> so it can be shown in the page (thinking about a WYSIWYG enviroment), but nothing seems to work. 

I'm attaching a testcase to test it.
(Reporter)

Comment 1

12 years ago
Created attachment 243917 [details]
testcase

this testcase has three paragraphs and tries to apply several styles to br, none of them works:

.p1 br {
	display:block;
	border:1px solid red;
	background-color:blue;
	height:1em;
	width:1em;
}
.p2 br{
	border:1px solid red;
	background-color:blue;
	height:1em;
	width:1em;
}

br:after
{content: "\B6 ";}

Comment 2

10 years ago
Only Opera and IE7 (sort of, IE8 doesn't) allow br elements to be styled.

In Opera's case I'd say that's a bug, because it also allows generated content on img elements. However, that's not clearly defined yet.
-> New for further triage.
Status: UNCONFIRMED → NEW
Component: Layout → Layout: Text
Ever confirmed: true
OS: Windows XP → All
QA Contact: layout → layout.fonts-and-text
Hardware: x86 → All
Version: 1.8 Branch → Trunk
You need to log in before you can comment on or make changes to this bug.