In article <[email protected]>, Lukasz Sromek <[email protected]> wrote:
> I still don't have one callback, I'm not sure what is it for: > css_error node_presentational_hint(void *pw, void *node, > uint32_t > property, css_hint *hint) It's for applying non-CSS presentational hints, as per 6.4.4 of the CSS 2.1 spec: http://www.w3.org/TR/CSS2/cascade.html#preshint > Could you explain the purpose of this callback and give some hints on > how to implement it? If you have, for example, <td cellpadding="2"> or <font color="#ff0000"> the CSS spec defines how those "presentational hints" are incorporated into the CSS cascade. Those would affect the element's {top|right|bottom|left}-padding and color properties respectively. It's optional whether you want to support the presentational attributes in HTML, but if you do, this callback is the mechanism by which you inform LibCSS of what presentational hints apply. You can see the NetSurf implementation for an example. http://source.netsurf-browser.org/trunk/netsurf/css/select.c?view=markup -- Michael Drake (tlsa) http://www.netsurf-browser.org/
