On Sat, Jan 17, 2009 at 04:29:37PM +0000, corvid wrote:
Johannes wrote:
On Sat, Jan 17, 2009 at 03:43:30PM +0000, corvid wrote:
Johannes wrote:
On Sat, Jan 17, 2009 at 03:20:45PM +0000, corvid wrote:
BTW, are bold and italic supposed to work?
Yes, where are you seeing problems?
I don't see them at all.
Hm, do you have a user stylesheet set?
For me
<body> Hello <b>World</b> <i>dillo</i> </body>
works ok.
It was breaking with or without a user stylesheet, but now I have found that adding * {font-family: sans !important} makes them appear properly. My system must not like Helvetica or something...
Currently font handling is more or less not existing. Whatever we get from CSS as font-family is passed directly to fltk - even if it is a comma separated list.
I wonder whether there's a way to specify something like code, tt, pre, samp, kbd {font-family: mono !important} * {font-family: sans !important} but have sans only for elements not otherwise specified.
According to http://www.w3.org/TR/CSS21/cascade.html#specificity the first rule should overrule the second one if it matches. So this should work. Note, that the specificity stuff is not fully implemented yet, but it should be sufficient for the example above. Cheers, Johannes