Skip to content

Instantly share code, notes, and snippets.

@lazd
Created June 29, 2012 14:42
Show Gist options
  • Save lazd/3018330 to your computer and use it in GitHub Desktop.
Save lazd/3018330 to your computer and use it in GitHub Desktop.
Test case for cloudhead/less.js bug #843
<!DOCTYPE html>
<html>
<head>
<title>less.js bug #843: minimal case to produce error</title>
</head>
<body>
<link rel="stylesheet/less" type="text/css" href="styles_bug843.less">
<script src="http://lesscss.googlecode.com/files/less-1.3.0.min.js" type="text/javascript"></script>
<div id="cow"></div>
</body>
</html>
/* Mixin with unquoted path in url() */
.background(@path) {
background-image: url(@path);
}
/* Class using mixin */
div#cow {
width: 160px;
height: 196px;
.background('cow.png');
background-repeat: no-repeat;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment