A little bug that I just stumbled upon. <table border=1> <tr><td style="cursor:help">one<td style="cursor:wait">two<td>three <tr><td colspan=3>row </table> The style of the first td seems to be the style of the whole table. (I wasn't surprised that the text has the default cursor, since I know there's that weirdness with wordStyle and regular style. Speaking of which, is it spelled out anywhere what is going on with that exactly? I know there have been times when I've been in the area of the table code and some reason why it's necessary has become clear, but I don't think I've ever had the whole shape of the matter in my head.) Hmm. I just changed the first td to style="cursor:help; color:red", and it colored the first td correctly, and now the rest of the table shows the wait cursor. Interesting.
On Mon, Jan 04, 2010 at 01:19:37AM +0000, corvid wrote:
A little bug that I just stumbled upon.
<table border=1> <tr><td style="cursor:help">one<td style="cursor:wait">two<td>three <tr><td colspan=3>row </table>
The style of the first td seems to be the style of the whole table.
(I wasn't surprised that the text has the default cursor, since I know there's that weirdness with wordStyle and regular style. Speaking of which, is it spelled out anywhere what is going on with that exactly? I know there have been times when I've been in the area of the table code and some reason why it's necessary has become clear, but I don't think I've ever had the whole shape of the matter in my head.)
If there is e.g. <div style="background-color:red">foo</div> dillo creates a textblock widget for the <div>, which will have a style set with backgoundColor red. Then the word foo is added. The question is what style should the word get? If it would get the same style as the textblock, we would draw a red background for each word again, which is unnecessary as the textblock has a red bg already. More important, it would simply be wrong for things like borders. We want the border around the whole <div>, not around each word. So basically for words we use the style of the containing textblock with resetValues() called plus some minor modifications to make things like <span style="background-color:red">foo</span> work, where <span> does not add a new widget to the textblock (this is the inheritBackgroundColor stuff).
Hmm. I just changed the first td to style="cursor:help; color:red", and it colored the first td correctly, and now the rest of the table shows the wait cursor. Interesting.
Interesting indeed :-) I will have a look at this. Cheers, Johannes
On Mon, Jan 04, 2010 at 01:19:37AM +0000, corvid wrote:
A little bug that I just stumbled upon.
<table border=1> <tr><td style="cursor:help">one<td style="cursor:wait">two<td>three <tr><td colspan=3>row </table>
The style of the first td seems to be the style of the whole table.
(I wasn't surprised that the text has the default cursor, since I know there's that weirdness with wordStyle and regular style. Speaking of which, is it spelled out anywhere what is going on with that exactly? I know there have been times when I've been in the area of the table code and some reason why it's necessary has become clear, but I don't think I've ever had the whole shape of the matter in my head.)
Hmm. I just changed the first td to style="cursor:help; color:red", and it colored the first td correctly, and now the rest of the table shows the wait cursor. Interesting.
Should be fixed now. Turned out to be a stupid bug in style.cc.
participants (2)
-
corvid@lavabit.com
-
Johannes.Hofmann@gmx.de