HighDots Forums  

Firefox

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Firefox in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Els
 
Posts: n/a

Default Re: Firefox - 01-24-2006 , 12:37 PM






Frances wrote:

Quote:
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.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Dr. Feelgood - Case Of The Shakes, A


Reply With Quote
  #12  
Old   
Frances
 
Posts: n/a

Default Re: Firefox - 01-24-2006 , 01:44 PM






Els wrote:
Quote:
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.

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..





Reply With Quote
  #13  
Old   
Els
 
Posts: n/a

Default Re: Firefox - 01-24-2006 , 01:46 PM



Frances wrote:

Quote:
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


Reply With Quote
  #14  
Old   
Tony
 
Posts: n/a

Default Re: Firefox - 01-24-2006 , 03:05 PM



VK wrote:

Quote:
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
The difference is quite simple & fairly easy to find: click on the
link Firefox provides in the console - it will highlight the error.

The error is the difference between:
-->
and
//-->

The "bad selector" is //, which is NOT a CSS comment
(http://www.w3schools.com/css/css_syntax.asp), and therefore is not
being read as one. Eliminate the // and the problem goes away.

I have found this behavior consistent with the test cases I've tried.

I don't think that's a Firefox bug. Rather, it's a coding error.



Reply With Quote
  #15  
Old   
Tony
 
Posts: n/a

Default Re: Firefox - 01-24-2006 , 03:07 PM



VK wrote:
Quote:
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

I should have kept reading



Reply With Quote
  #16  
Old   
Trevor L.
 
Posts: n/a

Default Re: Firefox - 01-24-2006 , 08:07 PM




Els wrote:
Quote:
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
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



Reply With Quote
  #17  
Old   
Ed Mullen
 
Posts: n/a

Default Re: Firefox - 01-24-2006 , 08:12 PM



Trevor L. wrote:
Quote:
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

Drag it from Windows Explorer and drop it into a Firefox browser window.
It's a zipped archive with automatic install. FF will ask if you want
to install it.

--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
http://abington.edmullen.net


Reply With Quote
  #18  
Old   
Jim Moe
 
Posts: n/a

Default Re: Firefox - 01-25-2006 , 12:44 AM



VK wrote:
Quote:
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
<style> element, CSS. Different languages. That is, of course, incorrect.
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.
Firefox is confused because it thinks a new ruleset is being declared
after the last one, ".q{color:#0000cc;}". There is the closing brace, "}",
then what appears to be a new selector, "//-->", with no ruleset following
it. Thus the error message.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Reply With Quote
  #19  
Old   
Jasen Betts
 
Posts: n/a

Default Re: Firefox - 01-25-2006 , 01:39 AM



On 2006-01-24, Jim Moe <jmm-list.AXSPAMGN (AT) sohnen-moe (DOT) com> wrote:
Quote:
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.
I don't think javascript has selectors or rulesets.



--

Bye.
Jasen


Reply With Quote
  #20  
Old   
Mark Parnell
 
Posts: n/a

Default Re: Firefox - 01-26-2006 , 05:34 PM



Deciding to do something for the good of humanity, Jim Moe
<jmm-list.AXSPAMGN (AT) sohnen-moe (DOT) com> declared in
comp.infosystems.www.authoring.stylesheets:

Quote:
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.
JS, CSS and XML errors are all reported through the JS console.

I find this extension very handy:
https://addons.mozilla.org/extension...refox&numpg=50

--
Mark Parnell
================================================== ===
Att. Google Groups users - this is your last warning:
http://www.safalra.com/special/googlegroupsreply/


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.