@@ -423,6 +423,18 @@ public function dataProvider()
423
423
'@import "https://font.googleapis.com/css?family=RobotoDraft:regular&lang=en"; ' ,
424
424
);
425
425
426
+ // https://github.com/matthiasmullie/minify/issues/109
427
+ $ tests [] = array (
428
+ 'p{font-weight:bold;} ' ,
429
+ 'p{font-weight:700} ' ,
430
+ );
431
+ $ tests [] = array (
432
+ 'p {
433
+ font-weight : normal
434
+ } ' ,
435
+ 'p{font-weight:400} ' ,
436
+ );
437
+
426
438
return $ tests ;
427
439
}
428
440
@@ -481,19 +493,19 @@ public function dataProviderPaths()
481
493
$ source .'/issue39.css ' ,
482
494
null , // no output file
483
495
// relative paths should remain untouched
484
- "@font-face{font-family:'blackcat';src:url(../webfont/blackcat.eot);src:url(../webfont/blackcat.eot?#iefix) format('embedded-opentype'),url(../webfont/blackcat.svg#blackcat) format('svg'),url(../webfont/blackcat.woff) format('woff'),url(../webfont/blackcat.ttf) format('truetype');font-weight:normal ;font-style:normal} " ,
496
+ "@font-face{font-family:'blackcat';src:url(../webfont/blackcat.eot);src:url(../webfont/blackcat.eot?#iefix) format('embedded-opentype'),url(../webfont/blackcat.svg#blackcat) format('svg'),url(../webfont/blackcat.woff) format('woff'),url(../webfont/blackcat.ttf) format('truetype');font-weight:400 ;font-style:normal} " ,
485
497
);
486
498
$ tests [] = array (
487
499
$ source .'/issue39.css ' ,
488
500
$ target .'/issue39.css ' ,
489
501
// relative paths should remain untouched
490
- "@font-face{font-family:'blackcat';src:url(../webfont/blackcat.eot);src:url(../webfont/blackcat.eot?#iefix) format('embedded-opentype'),url(../webfont/blackcat.svg#blackcat) format('svg'),url(../webfont/blackcat.woff) format('woff'),url(../webfont/blackcat.ttf) format('truetype');font-weight:normal ;font-style:normal} " ,
502
+ "@font-face{font-family:'blackcat';src:url(../webfont/blackcat.eot);src:url(../webfont/blackcat.eot?#iefix) format('embedded-opentype'),url(../webfont/blackcat.svg#blackcat) format('svg'),url(../webfont/blackcat.woff) format('woff'),url(../webfont/blackcat.ttf) format('truetype');font-weight:400 ;font-style:normal} " ,
491
503
);
492
504
$ tests [] = array (
493
505
$ source .'/issue39.css ' ,
494
506
$ target .'/target/issue39.css ' ,
495
507
// relative paths should have changed
496
- "@font-face{font-family:'blackcat';src:url(../../webfont/blackcat.eot);src:url(../../webfont/blackcat.eot?#iefix) format('embedded-opentype'),url(../../webfont/blackcat.svg#blackcat) format('svg'),url(../../webfont/blackcat.woff) format('woff'),url(../../webfont/blackcat.ttf) format('truetype');font-weight:normal ;font-style:normal} " ,
508
+ "@font-face{font-family:'blackcat';src:url(../../webfont/blackcat.eot);src:url(../../webfont/blackcat.eot?#iefix) format('embedded-opentype'),url(../../webfont/blackcat.svg#blackcat) format('svg'),url(../../webfont/blackcat.woff) format('woff'),url(../../webfont/blackcat.ttf) format('truetype');font-weight:400 ;font-style:normal} " ,
497
509
);
498
510
499
511
// https://github.com/forkcms/forkcms/issues/1121
0 commit comments