hackers-painters / katana-parser

A CSS parsing library in pure C99
http://hackers-painters.github.io/katana-parser
MIT License
180 stars 40 forks source link

fix wrong logic for katana_print_media_query() #15

Closed htower closed 6 years ago

htower commented 6 years ago

Old version is wrong. For example for this simple css

@media screen and (min-width: 768px) {
  .selector{
    property: value;
  }
}

it return such dump

@media (min-width: 768px) {
.selector {
  property: value;
}
}

instead of

@media screen and (min-width: 768px) {
.selector {
  property: value;
}
}