Closed Bug 280296 Opened 21 years ago Closed 21 years ago

Content in :before :after with text-decoration:none inherits underline from parent element

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: bugzilla2, Assigned: dbaron)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 When content is added with :before or :after to an element with a style of text-decoration: underline, the added content will also be underlined, even if it has a style of text-decoration: none. Reproducible: Always Steps to Reproduce: See testcase. Actual Results: p:after content inherits underline from p, despite its style of text-decoration: none Expected Results: p:after content should not have an underline.
Attached file testcase
text-decoration isn't inherited. It's draw across descendants, and can't be overridden on descendants.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: