Closed
Bug 33407
Opened 24 years ago
Closed 24 years ago
HTML Anchor element. CSS Margin values is applied only to the first line.
Categories
(Core :: Layout, defect, P3)
Tracking
()
VERIFIED
INVALID
People
(Reporter: scott.r.vesey, Assigned: rickg)
References
()
Details
(Keywords: verifyme)
Attachments
(1 file)
1.20 KB,
text/html
|
Details |
When a margin value is applied to an Anchor element the margin is only applied to the first line when the anchor element wraps to a second line. Since an Anchor tag is not a block element it is not clear that the margin value should be applied at all. If the value is applied, it should be applied to all lines contained in the element.
Comment 1•24 years ago
|
||
Attaching testcase, confirming. Gerv
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•24 years ago
|
||
The problem has nothing to do with margins. The problem is that you have a <p> tag inside an anchor <a>, which is not legal (strictly speaking). The residual style handling code is going through 1 more revision which will allow this (illegal) but backward compatible idiom.
Status: NEW → ASSIGNED
Comment 4•24 years ago
|
||
Bad HTML --> a workaround exists: fix the HTML! --> low priority unless shown to be widespread on web. Can anyone find examples on Web, esp. within Top 100? Marking M19; --> FUTURE if not common. (Unless rickg just fixes it. ;-> )
Target Milestone: --- → M19
Comment 5•24 years ago
|
||
Rick: I don't see any paragraphs inside an <a> tag in the test case. The test case is invalid, however, as the assertion given is incorrect per CSS1. Margins on inline elements must only apply on the first line. Marking INVALID.
SPAM. HTML Element component deprecated, changing component to Layout. See bug 88132 for details.
Component: HTML Element → Layout
You need to log in
before you can comment on or make changes to this bug.
Description
•