On Wed, Mar 23, 2011 at 10:10:35PM +0000, Jeremy Henty wrote:
Johannes Hofmann wrote:
To me the references to style->borderColor.top in drawBorder*() other than drawBorderTop() look like a typo,
I thought so too at first but it's less simple than I realised. The challenge is rendering borders in fancy styles. Check out the examples[1]. It is not obvious to me how to choose the right colors.
The CSS spec does not help[2] - it leaves the choice of colors up to the user agent. It gives informal descriptions of the border styles but they really just say "it must look how it should obviously look".
Yeah, I also remember something like that, but I made a test case (http://www.dillo.org/css_compat/tests/border-color.html) and it looks wrong when compared e.g. with firefox, so I guess it's a typo. Regards, Johannes