![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Els wrote: Ed Mullen wrote: Frances wrote: Els wrote: Frances wrote: Mark Parnell wrote: Deciding to do something for the good of humanity, Frances fdr58 (AT) yahoo (DOT) com> declared in comp.infosystems.www.authoring.stylesheets: I have done css for Firefox many times, have never encountered this.. would appreciate some leads.. A URL to the CSS file in question would make it much easier. thanks... http://www.francesdelrio.com/cc/viewer.css And what is the page that should use that stylesheet? First I was guessing your main page, but that one doesn't even have a reference to the stylesheet. Then I figured it would be about the page http://www.francesdelrio.com/cc/, but that one is referencing a different stylesheet. So.. which page is it that doesn't let Firefox read the stylesheet? I can't post code for pg calling stylesheet (this is for work... doesn't even go in path I posted earlier for stylesheet, I just stylesheet there yesterday to check css-syntax on line at the w3c site..), but call to stylesheet is as follows: LINK rel="stylesheet" type="text/css" href="viewer.css" as you can see, nothing fancy, nothing unusual... thank you very much.. Hard to tell without a look at the actual server environment you are seeing the error on. But, I'd suspect that possibly the server is sending the wrong MIME type for the style sheet OR, possibly, that the relative link in the HTML reference is not resolving correctly. Try an absolute link with the full URL to the style sheet. No, the server is sending the correct MIME type. My wild guess is, that there is a syntax error in the JavaScript on the HTML page, and the stylesheet is referenced *after* that JavaScript, and therefore isn't recognised. Frances - try taking out all the JavaScript from the <head> on your HTML page - does the problem persist then? there is no JS BEFORE call to stylesheet.. also if error is Error: Unexpected end of file while searching for ',' or '{'. Ruleset ignored due to bad selector. Source File: file:///T:/_mac/Pres110886_TOL_Altera/content/template/main.css Line: 1 and I click on ref to .css file it takes me to .css file.. how can this be a JS error? ('Ruleset' is a css thing, right?) (took out JS inside <head> problem persists..) this is truly baffling, it's like FF is not finding stylesheet.. |
#12
| |||
| |||
|
|
Frances wrote: Els wrote: Ed Mullen wrote: Frances wrote: Els wrote: Frances wrote: Mark Parnell wrote: Deciding to do something for the good of humanity, Frances fdr58 (AT) yahoo (DOT) com> declared in comp.infosystems.www.authoring.stylesheets: I have done css for Firefox many times, have never encountered this.. would appreciate some leads.. A URL to the CSS file in question would make it much easier. thanks... http://www.francesdelrio.com/cc/viewer.css And what is the page that should use that stylesheet? First I was guessing your main page, but that one doesn't even have a reference to the stylesheet. Then I figured it would be about the page http://www.francesdelrio.com/cc/, but that one is referencing a different stylesheet. So.. which page is it that doesn't let Firefox read the stylesheet? I can't post code for pg calling stylesheet (this is for work... doesn't even go in path I posted earlier for stylesheet, I just stylesheet there yesterday to check css-syntax on line at the w3c site..), but call to stylesheet is as follows: LINK rel="stylesheet" type="text/css" href="viewer.css" as you can see, nothing fancy, nothing unusual... thank you very much.. Hard to tell without a look at the actual server environment you are seeing the error on. But, I'd suspect that possibly the server is sending the wrong MIME type for the style sheet OR, possibly, that the relative link in the HTML reference is not resolving correctly. Try an absolute link with the full URL to the style sheet. No, the server is sending the correct MIME type. My wild guess is, that there is a syntax error in the JavaScript on the HTML page, and the stylesheet is referenced *after* that JavaScript, and therefore isn't recognised. Frances - try taking out all the JavaScript from the <head> on your HTML page - does the problem persist then? there is no JS BEFORE call to stylesheet.. also if error is Error: Unexpected end of file while searching for ',' or '{'. Ruleset ignored due to bad selector. Source File: file:///T:/_mac/Pres110886_TOL_Altera/content/template/main.css Line: 1 and I click on ref to .css file it takes me to .css file.. how can this be a JS error? ('Ruleset' is a css thing, right?) (took out JS inside <head> problem persists..) this is truly baffling, it's like FF is not finding stylesheet.. Is file:///T:/_mac/Pres110886_TOL_Altera/content/template/main.css the same file as http://www.francesdelrio.com/cc/viewer.css ? Is it served from the same server? I said earlier that it was sent with the correct MIME type, but that was on the server that serves http://www.francesdelrio.com/cc/viewer.css. I don't know anything about your local server of course. If you have the Web Developer Toolbar installed in FF, check the MIME type your CSS file is served with, by clicking 'Information' and then 'Page Information' in the Developer Toolbar. |
#13
| |||
| |||
|
|
Web Developer tool for FF.. sounds interesting.. will certainly check it out... (any url(s) off-hand? searched google for "firefox web developer tool".. went to mozilla.org entry but not found..) thank you.. |
#14
| |||
| |||
|
|
So Firefox 1.5 fails not on comment within style itself, but on some combination of rule declarations and comments. So what is the magic difference between erroneus: style><!-- body,td,a,p,.h{font-family:arial,sans-serif;} .h{font-size: 20px;} .q{color:#0000cc;} //-- /style and Ok'ed: style !-- body { background-color: #FFFFFF} -- /style |
#15
| |||
| |||
|
|
Just got it! Last Firefox doesn't tolerate anymore JavaScript-style escaped closing part of comment: style><!-- //--></style leads to error style><!-- --></style still OK |

#16
| |||
| |||
|
|
Frances wrote: Web Developer tool for FF.. sounds interesting.. will certainly check it out... (any url(s) off-hand? searched google for "firefox web developer tool".. went to mozilla.org entry but not found..) thank you.. http://chrispederick.com/work/webdeveloper/ -- Els http://locusmeus.com/ Sonhos vem. Sonhos vão. O resto é imperfeito. - Renato Russo - Now playing: Mötley Crüe - Rattlesnake Shake From http://chrispederick.com/work/webdeveloper/ I downloaded webdeveloper.xpi |
#17
| |||
| |||
|
|
Els wrote: Frances wrote: Web Developer tool for FF.. sounds interesting.. will certainly checkit out... (any url(s) off-hand? searched google for "firefox web developer tool".. went to mozilla.org entry but not found..) thank you.. http://chrispederick.com/work/webdeveloper/ -- Els http://locusmeus.com/ Sonhos vem. Sonhos vão. O resto é imperfeito. - Renato Russo - Now playing: Mötley Crüe - Rattlesnake Shake From http://chrispederick.com/work/webdeveloper/ I downloaded webdeveloper.xpi What in heaven's name is an .xpi file? When I tried to open it, I was asked for the name of the program to open it with. I don't know the answer to that |
#18
| |||
| |||
|
|
These are basic *Javascript* syntax errors, not CSS since they are in the JS console. You have a missing closing brace ("}") somewhere in your "Javascript* code. Unfortunately Firefox dumps in JavaScript console all its complains about the life - layout, script and style all together. style><!-- //-- /style If some CSS expert could explain what makes Firefox so upset that would be great. Ah, I see what I missed. That is a Javascript comment delimiter in a |
#19
| |||
| |||
|
|
Frances wrote: it all checks fine, got no errors or warnings.. however Firefox is not reading stylesheet, for some reason.. two examples of errors I get in JS console: Error: Unexpected end of file while searching for closing } of invalid rule set. Error: Unexpected end of file while searching for ',' or '{'. Ruleset ignored due to bad selector. These are basic *Javascript* syntax errors, not CSS since they are in the JS console. You have a missing closing brace ("}") somewhere in your "Javascript* code. |
#20
| |||
| |||
|
|
Previously, though, there was nowhere to send a message about CSS errors, they were silently handled. I guess Firefox decided the JS console was as good a place as any. |
![]() |
| Thread Tools | |
| Display Modes | |
| |