Skip to content

Commit

Permalink
Josep del Rio's fix for Chrome on Windows
Browse files Browse the repository at this point in the history
Chrome on Windows renders blank.gif as a black box. Chrome doesn't like fully transparent cursor images, so you must fool it by creating a 1px square with 1% opacity. Thanks to Josep for the fix!
  • Loading branch information
joe bartlett committed Nov 2, 2010
1 parent f2a149c commit a2cebc6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file removed demo/blank.gif
Binary file not shown.
Binary file added demo/blank.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion demo/index.html
Expand Up @@ -11,7 +11,7 @@
div { margin:0 auto; position:relative; top:50%; width:430px; }
img.demo { float:right; }
.demo { position:relative; top:-120px; }
.loupe { background-color:#555; background:rgba(0, 0, 0, 0.25); border:5px solid rgba(0, 0, 0, 0); cursor:url(blank.gif), url(blank.cur), none; }
.loupe { background-color:#555; background:rgba(0, 0, 0, 0.25); border:5px solid rgba(0, 0, 0, 0); cursor:url(blank.png), url(blank.cur), none; }
</style>
</head>

Expand Down

0 comments on commit a2cebc6

Please sign in to comment.