View Single Post
Old 05-29-2013, 07:20 AM   #23
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,149
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Jellby View Post
Should it? I'd say it's a bug if it does, or there is something else.

See the spec:

a { text-decoration: underline } -> specificity: 0,0,0,1
span.Hyperlinks { text-decoration: none } -> specificity: 0,0,1,1

so the second wins.
My eyes glaze over when I read spec sheets like that .

I always thought inside-out (or last one changed) was the rule for precedence on nested tags. <A inside a <P does not lose its (default) properties just because the <P did.

I will deffer to your expertise on this. You are the CSS Guru as I do borrow heavily from your code snippets posted in various sections.
theducks is online now   Reply With Quote