[Webkit-unassigned] [Bug 64156] text-decoration:none inside an anchor tag has no effect
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jul 18 11:27:28 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=64156
--- Comment #3 from David Vella <david.vella at bbc.co.uk> 2011-07-18 11:27:28 PST ---
Sincere apologies for that! you're right. Somehow I must have picked up an older version of the testcase.
I'm uploading the correct one right now with updated text so it's a bit more clear.
I would have expected that any child elements could override the parent styles, but after doing some further digging, the answer is not quite so clear when it comes to text-decoration.
The spec (http://www.w3.org/TR/CSS21/text.html#propdef-text-decoration) seems pretty clear on how the inheritance should work - and Webkit does indeed follow it. But it's not so clear if text-decoration can be overridden by a child element.
Firefox seems to allow this override - but they may have a different interpretation of the spec for this scenario.
Came across this new 'text-decoration-skip' property in the draft of CSS3 which seems to address this issue, although I could be wrong: http://www.w3.org/TR/2010/WD-css3-text-20101005/#text-decoration-skip0
You're welcome to close this bug as Invalid until there's a more defined answer. Thanks.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list