diff --git a/lesscpy/plib/block.py b/lesscpy/plib/block.py index 5948feb..74be6c4 100644 --- a/lesscpy/plib/block.py +++ b/lesscpy/plib/block.py @@ -36,7 +36,7 @@ class Block(Process): """ Parse block name and identifier """ name = ["%s " % t - if t in '>+' + if t in '>+*' else t for t in utility.flatten(self._p[1])] self._name = ''.join(name) diff --git a/lesscpy/test/css/css.css b/lesscpy/test/css/css.css index d8c3c50..80d1b55 100644 --- a/lesscpy/test/css/css.css +++ b/lesscpy/test/css/css.css @@ -9,6 +9,9 @@ div { * { min-width: 45em; } +* html .div { + min-width: 45em; +} h1, h2 > a > p, h3 { color: none; } diff --git a/lesscpy/test/css/css.min.css b/lesscpy/test/css/css.min.css index c876c57..2dba9f7 100644 --- a/lesscpy/test/css/css.min.css +++ b/lesscpy/test/css/css.min.css @@ -1,6 +1,7 @@ @charset "utf-8";@CHARSET "utf-8";div{color:black;} div{width:99%;} *{min-width:45em;} +* html .div{min-width:45em;} h1, h2 > a > p, h3{color:none;} div.class{color:blue;} div#id{color:green;} diff --git a/lesscpy/test/less/css.less b/lesscpy/test/less/css.less index f41a34a..3c12c01 100644 --- a/lesscpy/test/less/css.less +++ b/lesscpy/test/less/css.less @@ -7,6 +7,10 @@ div { width: 99%; } min-width: 45em; } +* html .div { + min-width: 45em; +} + h1, h2 > a > p, h3 { color: none; }