Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

less.js not working in chrome

I noticed that less.js is working in firefox but not in Chrome, or is it because I made an error?

<link rel="stylesheet/less" href="css/style.less" /> <script src="http://lesscss.googlecode.com/files/less-1.0.21.min.js"></script>  @highlight: #cb1e16; @shade1: #cb1e16; @tone1: #5c6f7d; @grad1: #e6edf3; @grad2: #8a8d92; @text1: #333e44;  header, footer, section, article, nav, aside { display: block; }  .grad {   background: @grad2;   background: -moz-linear-gradient(top, @grad1, @grad2 1200px);   background: -webkit-gradient(linear, 0 0, 0 1200, from(#e6edf3), to(#8a8d92)); }  html {   .grad;   min-height: 100%; } 

even if i try html { background: red; } it still does not work in chrome am i making a mistake somewhere?

like image 401
Jiew Meng Avatar asked Jun 21 '10 13:06

Jiew Meng


1 Answers

From the link you provided : Less.js browser script currently won’t work if you’re using Chrome and the path to your page starts with “file:///” due to a known Chrome issue.

like image 109
Lithium Avatar answered Oct 02 '22 11:10

Lithium