Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Using a css parser in Silverlight.
0 replies. Latest Post by Krasshirsch on July 13, 2009.
(0)
Krasshirsch
Participant
1042 points
300 Posts
07-13-2009 5:36 AM |
I'm currently developing a css parser for an offline app.Since this app is built using .NET 3.5 I thought, what the heck, lets do this one as a SL project.It could be the first step towards a html renderer for SL, which would be quite handy I suppose.
Apart from all css @rules, like @media, @charset the @import rule is the most troublesome one, since it requires a recursive precompilation step to find and include all external dependencies. The problem here is, all relative paths like url(../bla.css) will fail since Silverlight has a different root than the page I want to display, furthermore used just as a plain html renderer for viewing mails or newsletters there will never be an @import rule, what to do ?
For the offline app it will be straightforward since I will keep to the css 2.1 guide lines, but to make it work in SL I need a little more insights, any ideas ?