Menu

#81 Inherited property is empty in 0.9.18+

0.9.24
wont-fix
RBRi
None
1
2017-09-13
2017-09-12
No

Hi there,

Up to version 0.9.17, I could parse the following css and get a valid font-family for OptionsPanel.PlotOptions.h1:

@font-face {
  font-family: serifBold;
  src: url('fonts/Merriweather-Bold.ttf');
}
...
#OptionsPanel #PlotOptions h1,
#OptionsPanel #SessionOptions h1,
#OptionsPanel #StatsOptions h1 {
  font-size: 16px;
  font-family: serifBold;
}

But from 0.9.18 onwards, I would get an empty string for that property. Could this be a bug?

Discussion

  • RBRi

    RBRi - 2017-09-12

    Can you please provide java sample code. I'm not sure i got your point.

    And yes, it could be a bug ;-)

     
  • Andres Colubri

    Andres Colubri - 2017-09-12

    I found the source of the problem: versions prior to 0.9.18 return rules in the following format:

    *#OptionsPanel *#PlotOptions h1, *#OptionsPanel *#SessionOptions h1, *#OptionsPanel *#StatsOptions h1 { font-size: 16px; font-family: serifBold }
    

    (notice the asterisk before the numerals), whereas the same rule in 0.9.18 would look like

    #OptionsPanel #PlotOptions h1, #OptionsPanel #SessionOptions h1, #OptionsPanel #StatsOptions h1 { font-size: 16px; font-family: serifBold }
    

    This difference was breaking my (admittedly poor) rule parsing code, but after fixing, I can now read the output from the latest cssparser (0.9.23) without issues.

    Thank you!

     
  • RBRi

    RBRi - 2017-09-13
    • status: open --> wont-fix
    • assigned_to: RBRi
     
  • RBRi

    RBRi - 2017-09-13

    That was documented in the release notes...
    Thanks for for the feedback. Enjoy using CSSParser

     

Anonymous
Anonymous

Add attachments
Cancel