techsd / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

SWFObject and CSS @import validation issues #184

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Link to an external CSS file which @imports other CSS files from XHTML
Strict page.
2. Add SWFObject scripts to page.
3. Validate CSS using W3C Jigsaw Validator
(http://jigsaw.w3.org/css-validator/)

What is the expected output? What do you see instead?
When validating each CSS file, including the @import file, all CSS is
listed as valid.

When trying to validate CSS directly from browser using validator options
in Firefox Web Developer toolbar the following errors occur:

==================================================
Sorry! We found the following errors (6)
URI : file://localhost/webdeveloper-www.sitepipes.local-1223491218911.css
5 Parse error - Unrecognized @import url("reset.css");
6 Parse error - Unrecognized @import url("960.css");
7 Parse error - Unrecognized @import url("typography.css");
8 Parse error - Unrecognized @import url("forms.css");
9 Parse error - Unrecognized @import url("buttons.css");
23 Parse error - Unrecognized @import url("_overrides.css"); 
==================================================

The odd thing is that the "Valid CSS Information" listing that follows
includes all of the CSS used for the site, even the CSS generated by
SWFObject (in this case, "#sp-slideshow {visibility : hidden;}").

What version of the product are you using? On what operating system?
- Firefox 3.0.1 Mac and Firefox 2.0.0.17 WinXP
- Web Developer Firefox Add-On 1.1.6
- SWFObject 2.1
- Mac OS X 10.5.5 and Windows XP Pro
- Exported SWF is targeted at Flash Player 6.0 and above

Please provide any additional information below.
This site is not yet live so I am unable to provide a URL for review. I can
provide a working URL if absolutely necessary -- please contact me if this
is needed.

It seems to me that the problem might be with injecting the SWFObject CSS
prior to any of the other CSS? I have no idea and this is just a guess on
my part. Please let me know if I can provide any additional information
that may be helpful.

William

Original issue reported on code.google.com by william....@gmail.com on 8 Oct 2008 at 6:54

GoogleCodeExporter commented 9 years ago
Please provide a working URL. 

Also, what makes you think this is a SWFObject issue and not a validator issue,
because I tend to think that it is either an authoring issue or a validator 
issue.

Original comment by bobbyvandersluis on 8 Oct 2008 at 8:02

GoogleCodeExporter commented 9 years ago
Let's swap it around. I say it's an authoring issue or a validator issue until 
proven
otherwise, which means that you have to include hard proof that SWFObject does
something illegal. But I doubt this, because it uses W3C DOM methods only in 
Firefox.

Original comment by bobbyvandersluis on 9 Oct 2008 at 9:15