mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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:
commit
58a9b31de2
1 changed files with 14 additions and 4 deletions
|
@ -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; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue