cssdream / cssgrace

从今天起,写简单优雅面向未来的 CSS。From now on,writing brief,elegant,future-oriented CSS.
MIT License
592 stars 63 forks source link

多余的hack #43

Open gucong3000 opened 8 years ago

gucong3000 commented 8 years ago
audio, canvas, progress, video {
  display: inline-block;
  *display: inline;
  *zoom: 1;
}

这样的CSS代码,会输出为

audio, canvas, progress, video {
  display: inline-block;
  *display: inline;
  *zoom: 1;
  *display: inline;
  *zoom: 1;
}

建议在插入hack语句前先检查一下是否已有hack

yisibl commented 8 years ago

好的!

gucong3000 commented 8 years ago

https://github.com/cssdream/cssgrace/pull/21 曾有个pr,我倒是有兴趣修复

gucong3000 commented 8 years ago

已修复https://github.com/cssdream/cssgrace/pull/44 亲,麻烦review下代码哦。