Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add failing test for [ticket 2009249]

  • Loading branch information...
commit 98310d3cd799ab6f243689c7611503ac234ad2db 1 parent bf1b5f7
isaacs authored
Showing with 36 additions and 0 deletions.
  1. +36 −0 tests/link-icons.css.FAIL
View
36 tests/link-icons.css.FAIL
@@ -0,0 +1,36 @@
+/* re 2009249. Crashes for some reason. */
+/* --------------------------------------------------------------
+
+link-icons.css
+* Icons for links based on protocol or file type.
+
+See the Readme file in this folder for additional instructions.
+
+-------------------------------------------------------------- */
+
+/* Use this class if a link gets an icon when it shouldn't. */
+body a.noicon { background:none; padding:0; margin:0; }
+
+/* Make sure the icons are not cut */
+a[href^="http:"], a[href^="mailto:"], a[href^="http:"]:visited,
+a[href$=".pdf"], a[href$=".doc"], a[href$=".xls"], a[href$=".rss"],
+a[href$=".rdf"], a[href^="aim:"] {
+padding:2px 22px 2px 0;
+margin:-2px 0;
+background-repeat: no-repeat;
+background-position: right center;
+}
+
+/* External links */
+a[href^="http:"] { background-image: url(icons/external.png); }
+a[href^="mailto:"] { background-image: url(icons/email.png); }
+a[href^="http:"]:visited { background-image: url(icons/visited.png); }
+/* Files */
+a[href$=".pdf"] { background-image: url(icons/pdf.png); }
+a[href$=".doc"] { background-image: url(icons/doc.png); }
+a[href$=".xls"] { background-image: url(icons/xls.png); }
+
+/* Misc */
+a[href$=".rss"],
+a[href$=".rdf"] { background-image: url(icons/feed.png); }
+a[href^="aim:"] { background-image: url(icons/im.png); }
Please sign in to comment.
Something went wrong with that request. Please try again.