Closed
Bug 400299
Opened 17 years ago
Closed 17 years ago
attributes assigned in nested span tags don't always stick
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 205640
People
(Reporter: gashlerm, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20071008 Ubuntu/7.10 (gutsy) Firefox/2.0.0.6 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20071008 Ubuntu/7.10 (gutsy) Firefox/2.0.0.6 The following simple HTML demonstrates the problem: <html><body> <span style="font-style: italic; color: rgb(255, 0, 0); font-weight: bold; text-decoration: line-through;"> Correct </span> <span style="font-style: italic; text-decoration: line-through;"> <span style="color: rgb(255, 0, 0); font-weight: bold;"> Incorrect </span> </span> <br><br>Note that the word "Correct" has a red line through it, and the word "Incorrect" has a black line through it. (It should be red.) Both words have the exact same set of attribute values applied to them, but in the "Incorrect" case, they are applied in separate span tags. </body></html> Reproducible: Always Steps to Reproduce: Open this HTML in firefox: <html><body> <span style="font-style: italic; color: rgb(255, 0, 0); font-weight: bold; text-decoration: line-through;"> Correct </span> <span style="font-style: italic; text-decoration: line-through;"> <span style="color: rgb(255, 0, 0); font-weight: bold;"> Incorrect </span> </span> <br><br>Note that the word "Correct" has a red line through it, and the word "Incorrect" has a black line through it. (It should be red.) Both words have the exact same set of attribute values applied to them, but in the "Incorrect" case, they are applied in separate span tags. </body></html> Actual Results: That the word "Incorrect" is rendered with a black line through it. Expected Results: That the word "Incorrect" should have a red line through it.
Comment 1•17 years ago
|
||
the line-through is drawn on the element with text-decoration set and so in the color of that element, black. It doesnt matter what the colors of descendant elements is.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•