Closed Bug 92426 Opened 23 years ago Closed 22 years ago

Extra auto generated content for 'fieldset' and 'legend' elements using pseudo elements :before and :after

Categories

(Core :: Layout, defect, P5)

x86
Windows NT
defect

Tracking

()

RESOLVED FIXED
mozilla1.1alpha

People

(Reporter: robert.newson, Assigned: dbaron)

References

Details

(Keywords: css2, testcase)

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.2) Gecko/20010628
BuildID:    2001062815

When using :before and :after to add auto generated content to <legend> elements
(which must be within a <fieldset> element), extra content is generated on the
next line.


Reproducible: Always
Steps to Reproduce:
Step 1. view the HTML sample in additionial information.




Actual Results:  Extra []'s appear on the line below the legend.

Expected Results:  I expect to only see []'s around the legend.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html> <head>
<title></title>

<style>
legend:before
{
content: '[';
}

legend:after
{
content: ']';
}
</style>

</head>

<body>
<h1></h1>
<fieldset>
<legend>Name Of Fieldset</legend>

</fieldset>
</body>
</html>
Component: HTML Element → HTML Form Controls
Marc, another one over to you.  Should we find a new module owner for HTML Element?
Assignee: clayton → attinasi
Yup, I see it now. Looking into it.
Status: UNCONFIRMED → NEW
Component: HTML Form Controls → Layout
Ever confirmed: true
Attached file Testcase as attachment
QA Contact: bsharma → moied
Target Milestone: --- → Future
See closely related bug 90649.
Keywords: testcase
Priority: -- → P5
remove self
Keywords: css2
Depends on: 141289
This is fixed by the patch on bug 141289.
Assignee: attinasi → dbaron
Testcase works in a new Linux CVS trunk build.  Resolving Fixed.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
using branch build 20020531 on winxp, Extra []'s appear on the line below the
legend, Reoping this bug.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
This was never fixed on the branch.
Status: REOPENED → RESOLVED
Closed: 22 years ago22 years ago
Resolution: --- → FIXED
Target Milestone: Future → mozilla1.1alpha
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: