dvschultz / 99problems

99 Problems and e-reader rendering are all of them
60 stars 3 forks source link

ADE chrashes if empty media queries exists #44

Open finanzer opened 9 years ago

finanzer commented 9 years ago

If in css file empty media queries exists, then ADE (tested with 2.0 and 4.0) and readers (e.g. tolino) or software (blue fire reader) with adobe engine chrashes. Here an example file:

@font-face { 
    font-family : "Gentium"; 
    font-weight : normal; 
    font-style: normal; 
    src: url("../Fonts/GentiumPlus-R.ttf"); 
}

@media amzn-kf8
{
}

@media not amzn-mobi
{
}

Repair is naturally easy: remove the empty media queries

madevelopers commented 9 years ago

I tested it with ADE 4.0.3.117585. ADE didn't crash but wouldn't open the epub file.