[mythtv] [mythtv-commits] Ticket #3132: Mythweb CSS uses '_' in identifiers, not in CSS syntax, causes Firefox to ignore those styles.

Karl Hegbloom karlheg at gmail.com
Sun Feb 25 19:43:58 UTC 2007


On Sat, 2007-02-24 at 20:22 +0000, MythTV wrote:
> 
>  fyi, css2 allows underscores just fine.
> 

No, I am fairly certain that you are mistaken.  Please see the CSS
grammar specifications at:

  http://www.w3.org/TR/REC-CSS2/syndata.html#tokenization

I think that the grammar presented by "Appendix D" is the one we should go by:

  http://www.w3.org/TR/REC-CSS2/grammar.html

Notice that 'nmchar' does NOT contain the underscore character.  It
contains alphabetical characters, numerals, and the '-' (hyphen).
'nmstart' contains only alphabetical characters.  The lexical scanner is
supposed to be case-insensitive.  So, legal identifiers are:

title-header
Title-header
TitleHeader

... but *not*:

title_header

... and:

titleheader

... is supposed to be the same as:

TitleHeader

... and:

TiTLEheaDER


FWIW, those pages display the same as in the screenshots using
MythBrowser also.  I'm pretty sure that not all of the styles are being
applied.  Either that, or the stylesheet is not very good, since there
are serious contrast issues wrt to dark text on dark backgrounds and
light text on light backgrounds.  Also there is that 'backend status'
page where the text is invisible until you fly over it with the mouse
pointer.

I am curious as to what browser the Mythweb CSS style sheet author is
testing with?  If those style sheets work for him, then that browser is
not following the standard, as far as I can tell.

-- 
Karl Hegbloom <karlheg at gmail.com>



More information about the mythtv-dev mailing list