From 634f48b9d09648ec38781d222d186513e96b9ab7 Mon Sep 17 00:00:00 2001 From: Entlinkt Date: Sat, 28 Sep 2013 19:13:33 +0200 Subject: [PATCH] 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 --- skins/common/shared.css | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } -- 2.20.1