From: Entlinkt Date: Sat, 28 Sep 2013 17:13:33 +0000 (+0200) Subject: Restrict formatting to where a title attribute is present X-Git-Tag: 1.31.0-rc.0~18610 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=634f48b9d09648ec38781d222d186513e96b9ab7;p=lhc%2Fweb%2Fwiklou.git Restrict formatting to where a title attribute is present Reasoning: * It does not make sense to draw attention to an element that doesn't have a title attribute because there is nothing special to see there. * It matches Gecko's default stylesheet [1] and the HTML5 style [2]. * It does not negatively impact compatibility, as far as I know (IE 6 does not support the [title] selector, but does not support the element either). * elements are currently not allowed and won't be because they are non-conforming in HTML5 (cf. bug 671, comment 37), so this part of the rule can be dropped. [1] http://mxr.mozilla.org/mozilla-central/source/layout/style/html.css [2] http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#phrasing-content-1 Bug: 54729 Change-Id: I1b00ddb7996911e9b477365e7a84458cefd5da90 --- diff --git a/skins/common/shared.css b/skins/common/shared.css index 0118d2012d..7cc58e3030 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -59,9 +59,8 @@ input[dir="rtl"] { } /* Default style for semantic tags */ -abbr, -acronym, -.explain { +abbr[title], +.explain[title] { border-bottom: 1px dotted; cursor: help; }