Add missing whitespace for &

This commit is contained in:
Sascha Peilicke 2014-01-23 16:40:54 +01:00
parent e70c16c570
commit 54b1e696c6
4 changed files with 11 additions and 0 deletions

View File

@ -110,6 +110,8 @@ class Identifier(Node):
if any((n for n in name if n == '&')):
for n in name:
if n == '&':
if parsed[-1].endswith(']'):
parsed.extend(' ')
if parent[-1] == ' ':
parent.pop()
parsed.extend(parent)

View File

@ -40,3 +40,6 @@
@font-face {
src: url('x') format('e'), url('r') format('s');
}
fieldset[disabled] .form-control {
cursor: not-allowed;
}

View File

@ -10,3 +10,4 @@
.no_final_semi1{color:yellow;color:white;}
@media all{html{padding:src('no semi in media block');}}
@font-face{src:url('x') format('e'),url('r') format('s');}
fieldset[disabled] .form-control{cursor:not-allowed;}

View File

@ -61,3 +61,8 @@ color: yellow;
src: url('x') format('e'),
url('r') format('s');
}
.form-control {
fieldset[disabled] & {
cursor: not-allowed;
}
}