As I'm not an css-expert I'm not sure if it is realy an bug, that 'background-color' of a child is not
inherited from it's parent (like 'color' is)
In my opinion it is - but I would like to hear some experts.
If it is considered as a bug, i will commit my changes (respectively move 'background-color'
to the /* INHERITED PROPERTIES START HERE */ - block in the HtmlComputedValues struct.
Matthias
Yes, I tested the html in SeaMonkey 1.1.2 and Firefox 3.6.6 and it works the way I expect.
(Both rows in one <tbody> are 'highlighted' as the mouse is over one row)
(You have to remove the '\"' in the tcl-code: '<style type=\"text/css\">' --> '<style type="text/css">'
IE 6.0 and IE 8.0 seem to ignore the "tbody:hover ..."
':hover' seems not to work well in IE - there are some articles about this problem on the web.
Im my tests i got in only working on links (<a href=...)
See also:
http://hackprogrammer.blogspot.com/2008/09/ie8-css-hover-not-working.html
http://www.xs4all.nl/~peterned/csshover.html
http://www.daniweb.com/web-development/web-design/html-and-css/threads/315415
I tried to 'push' my changes but i got an error:
fossil push
...
Error: not authorized to write
How do i get my changes uploaded?
Matthias
jemptymethod schrieb:
> On Apr 11, 11:29 am, "m.meier" <me...@fuh-e.de> wrote:
>> Hello,
>>
>> the problem could be fixed if the function HtmlComputedValuesInit
>> would be changed to the following code.
>> But I'm not sure why
>> "HtmlColor *cBackgroundColor; /* 'background-color' */"
>> is not in the
>> /* INHERITED PROPERTIES START HERE */
>> block in
>> struct HtmlComputedValues
>> .
>>
>> Here the Code (see the 20110411-part)
>
> Excellent! If you've compiled your code and it runs on your system,
> if you haven't already, you might want to clone the tkhmtl fossil
> repo, commit your changes, and even push them. I can try to be more
> help with this facet of things than with C code, though not until
> April 20th or so (I'm preparing for a tech presentation on an entirely
> different topic next Tues April 19).
--
Mit freundlichen Gr��en
Matthias Meier
FuH Entwicklungsgesellschaft mbH
Gesch�ftsf�hrer Carola Fornoff und J�rg-Friedrich Sch�ner
HRB Freiburg 701203, UID DE255007372
Hauptstr. 4, D-79224 Umkirch
Tel +49 7665 93288-0, Fax -150
As it is written on http://www.w3.org/TR/CSS21/colors.html
'background-color' is not inherited. (seems still strange to me - but thats the way it is)
But i also found a 'workaround' I can live with:
Just changed the syle from
tbody:hover { background-color:green; color:red; }
to
tbody:hover * { background-color:green; color:red; }
Thanks for all help!
Matthias
Dan schrieb: