Closed Bug 310128 Opened 19 years ago Closed 19 years ago

Bug When Cascading text-decoration Style

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 10458

People

(Reporter: mbolin, Assigned: dbaron)

References

()

Details

(Keywords: testcase)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

text-decoration style does not cascade when other styles do.

Reproducible: Always

Steps to Reproduce:
1. Create a table with "text-decoration: underline"
2. Create a TD in the table with "text-decoration: none"

Actual Results:  
The TD had an underline.

Expected Results:  
It should have repressed the underline.
Possibly invalid (e.g. see Bug 10458) but moving to somewhere more appropriate
since I'm not certain.

->Core:Style
Assignee: nobody → dbaron
Component: General → Style System (CSS)
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
Keywords: testcase
Well, something certainly seems strange since (font-weight: normal) overrides
(font-weight: bold) but (text-decoration: none) does not override
(text-decoration: underline).
Yeah, this is not a bug.
See http://www.w3.org/TR/CSS21/text.html#lining-striking-props
> Text decorations on inline boxes are drawn across the entire element, going
across any descendant elements without paying any attention to their presence.

The line is not TD's. Because text-decorations is not inherited. The owner of
the line is parent table element.

*** This bug has been marked as a duplicate of 10458 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.