Auto merge of #11022 - notriddle:master, r=SimonSapin

Use tag names in all user-agent selectors.

Fixes #11004

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11022)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-05-09 07:34:08 -07:00
commit 58a9b31de2

View file

@ -87,13 +87,23 @@ sub, sup { line-height: normal; font-size: smaller; }
ruby { display: ruby; } ruby { display: ruby; }
rt { display: ruby-text; } rt { display: ruby-text; }
:link { color: #0000EE; } /*
:visited { color: #551A8B; } * All tag names that can be links are listed here, because applying pseudo-class selectors
:link, :visited { text-decoration: underline; cursor: pointer; } * disables style sharing, so we want to apply pseudo-class selectors to as few elements as
* possible.
*/
a:link, area:link { color: #0000EE; }
a:visited, area:visited { color: #551A8B; }
a:link, a:visited,
area:link, area:visited { text-decoration: underline; cursor: pointer; }
a:link[rel~=help], a:visited[rel~=help], a:link[rel~=help], a:visited[rel~=help],
area:link[rel~=help], area:visited[rel~=help] { cursor: help; } area:link[rel~=help], area:visited[rel~=help] { cursor: help; }
:focus { outline: thin dotted; } /* FIXME: 'outline: auto' ? */ /*
* FIXME: use `outline: auto;`
*/
a:focus, area:focus,
input:focus, textarea:focus, button:focus { outline: thin dotted; }
mark { background: yellow; color: black; } mark { background: yellow; color: black; }