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?
Anonymous
Can you please provide java sample code. I'm not sure i got your point.
And yes, it could be a bug ;-)
I found the source of the problem: versions prior to 0.9.18 return rules in the following format:
(notice the asterisk before the numerals), whereas the same rule in 0.9.18 would look like
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!
That was documented in the release notes...
Thanks for for the feedback. Enjoy using CSSParser