Opened 13 years ago

Closed 13 years ago

#3132 closed defect (fixed)

Mythweb CSS uses '_' in identifiers, not in CSS syntax, causes Firefox to ignore those styles.

Reported by: anonymous Owned by: xris
Priority: major Milestone: unknown
Component: mythweb Version: 0.20
Severity: medium Keywords:
Cc: Ticket locked: no

Description

The CSS specification does not allow the underscore character in identifiers for CSS class and id. This causes Firefox to ignore any styles defined with an underscore in the name. If the Mythweb pages and CSS are modified to change '_' into '-', it will work as expected. Right now, the pages do not display correctly since many of the styles are not being applied.

Attachments (4)

mythweb-broken-css-firefox-startpage.png (159.6 KB) - added by anonymous 13 years ago.
Screenshot of start page showing that styles not applied correctly
mythweb-broken-css-firefox-backend-status-01.png (134.6 KB) - added by anonymous 13 years ago.
Screenshot of backend status page as it first appears
mythweb-broken-css-firefox-backend-status-02.png (172.7 KB) - added by anonymous 13 years ago.
Screenshot of backend status page with a flyover posted
mythweb-broken-css-firefox-settings.png (133.0 KB) - added by anonymous 13 years ago.
Screenshot of the settings page showing background style not working

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by anonymous

Screenshot of start page showing that styles not applied correctly

Changed 13 years ago by anonymous

Screenshot of backend status page as it first appears

Changed 13 years ago by anonymous

Screenshot of backend status page with a flyover posted

Changed 13 years ago by anonymous

Screenshot of the settings page showing background style not working

comment:1 Changed 13 years ago by Rob Smith

CSS does allow _ in class names and identifiers. The only issue I know of is IE can't use ones that start with a _.

I know that it renders properly in my firefox and opera, and I know xris uses firefox to develop mythweb.

You seem to have a few extensions running in your screen shots, can you verify it's not one of them?

What version of firefox as well?

comment:2 Changed 13 years ago by xris

fyi, css2 allows underscores just fine.

comment:3 Changed 13 years ago by xris

Resolution: fixed
Status: newclosed

(In [12985]) Replace all 'starts with an underscore' css classes with ones that start with a dash instead. closes #3132

Note: See TracTickets for help on using tickets.