servo: Merge #11022 - Use tag names in all user-agent selectors (from notriddle:master); r=SimonSapin

Fixes #11004

Source-Repo: https://github.com/servo/servo
Source-Revision: 58a9b31de274d952a390f672fdc541c7d502ad59
This commit is contained in:
Michael Howell 2016-05-09 07:34:08 -07:00
Родитель c4277e661c
Коммит da374f073c
1 изменённых файлов: 14 добавлений и 4 удалений

Просмотреть файл

@ -87,13 +87,23 @@ sub, sup { line-height: normal; font-size: smaller; }
ruby { display: ruby; }
rt { display: ruby-text; }
:link { color: #0000EE; }
:visited { color: #551A8B; }
:link, :visited { text-decoration: underline; cursor: pointer; }
/*
* All tag names that can be links are listed here, because applying pseudo-class selectors
* 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],
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; }