From f9a8c8551b36f5612f6f1c49781ebd38b6473272 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Fri, 5 Jan 2007 17:34:35 +0000 Subject: [PATCH] Work around a bizarre interpretation of standards by Mozilla (https://bugzilla.mozilla.org/show_bug.cgi?id=365970): when links are underlined, so should all their descendants. --- RELEASE-NOTES | 2 ++ includes/Skin.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d3b97d0798..c2cca1ac50 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -462,6 +462,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 8330) Show "bytes" suffix on recent changes diff counter * (bug 8489) Support basic links in caption attribute * (bug 8485) Correct Lingala number formatting +* When links are underlined, the entire link text should be underlined, even + if it contains elements with a background color set. == Languages updated == diff --git a/includes/Skin.php b/includes/Skin.php index 662e229231..2eef17e8c2 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -460,7 +460,7 @@ var wgAjaxWatch = { $s = ''; if (($undopt = $wgUser->getOption("underline")) != 2) { $underline = $undopt ? 'underline' : 'none'; - $s .= "a { text-decoration: $underline; }\n"; + $s .= "a, a * { text-decoration: $underline; }\n"; } if( $wgUser->getOption( 'highlightbroken' ) ) { $s .= "a.new, #quickbar a.new { color: #CC2200; }\n"; -- 2.20.1