Closed Bug 217074 Opened 23 years ago Closed 19 years ago

Wrong rendering of images (different from MSIE/Opera)

Categories

(Tech Evangelism Graveyard :: Norwegian, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: marius, Unassigned)

References

()

Details

(Whiteboard: [bug248549notfixed])

Attachments

(1 file)

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Linux 2.4.18-bf2.4 i686) Opera 7.11 [en] Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030716 Debian/1.4-2.he-1 Open http://www.trondheimvenstre.no/ in Mozilla. The images are displayed above the text. The page is nearly valid HTML code, and it renders OK in MSIE and Opera, but not in Mozilla and konqueror. Reproducible: Always Steps to Reproduce:
The rendering is off for me as well (Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624). However, a quick run through the W3 HTML validator shows the page is not "nearly valid HTML code" - there is no doctype declaration! I suspect this is an issue for tech evangelism.
Nearly valid html, yes, but WOW! what a horrid CSS file! http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.trondheimvenstre.no%2Fstil.css&warning=1&profile=css2 The particular issue here comes from the fact that any length in the css file had a space between the value and the units, ie. "8 px". I can't remember offhand what the spec says about this, but the CSS validator was marking it wrong (over, and over, and over) so I'm guessing it's invalid.
wow that stylesheet is _so_ full of errors. 1. don't put color values in quotes 2. don't insert a space before the unit if those changes are made, the page renders fine ==> tech evang from a mozilla debug build: CSS Error (http://www.trondheimvenstre.no/stil.css :2.21): Error in parsing valu e for property 'background'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :3.16): Expected color but fo und '"#FF3300"'. Error in parsing value for property 'color'. Declaration drop ped. CSS Error (http://www.trondheimvenstre.no/stil.css :7.19): Expected color but fo und '"#99CC33"'. Error in parsing value for property 'color'. Declaration drop ped. CSS Error (http://www.trondheimvenstre.no/stil.css :8.20): Expected end of value for property but found 'pt'. Error in parsing value for property 'font-size'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :12.17): Expected color but f ound '"#000000"'. Error in parsing value for property 'color'. Declaration dro pped. CSS Error (http://www.trondheimvenstre.no/stil.css :16.16): Expected color but f ound '"#000000"'. Error in parsing value for property 'color'. Declaration dro pped. CSS Error (http://www.trondheimvenstre.no/stil.css :20.16): Expected color but f ound '"#000000"'. Error in parsing value for property 'color'. Declaration dro pped. CSS Error (http://www.trondheimvenstre.no/stil.css :24.17): Expected end of valu e for property but found 'pt'. Error in parsing value for property 'font-size'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :29.19): Expected color but f ound '"#99CC33"'. Error in parsing value for property 'color'. Declaration dro pped. CSS Error (http://www.trondheimvenstre.no/stil.css :30.19): Expected end of valu e for property but found 'pt'. Error in parsing value for property 'font-size'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :32.22): Error in parsing val ue for property 'font-weight'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :36.16): Expected color but f ound '"#000000"'. Error in parsing value for property 'color'. Declaration dro pped. CSS Error (http://www.trondheimvenstre.no/stil.css :41.19): Expected end of valu e for property but found 'px'. Error in parsing value for property 'top'. Decl aration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :42.21): Expected end of valu e for property but found 'px'. Error in parsing value for property 'left'. Dec laration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :43.22): Expected end of valu e for property but found 'px'. Error in parsing value for property 'right'. De claration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :44.24): Expected end of valu e for property but found 'px'. Error in parsing value for property 'height'. D eclaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :46.28): Expected end of valu e for property but found 'px'. Error in parsing value for property 'padding-top '. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :47.30): Expected end of valu e for property but found 'px'. Error in parsing value for property 'padding-rig ht'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :48.29): Expected end of valu e for property but found 'px'. Error in parsing value for property 'padding-lef t'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :49.31): Expected end of valu e for property but found 'px'. Error in parsing value for property 'padding-bot tom'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :51.31): Error in parsing val ue for property 'background'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :52.26): Expected color but f ound '"#FFFFFF"'. Error in parsing value for property 'color'. Declaration dro pped. CSS Error (http://www.trondheimvenstre.no/stil.css :57.27): Expected end of valu e for property but found 'px'. Error in parsing value for property 'top'. Decl aration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :58.26): Expected end of valu e for property but found 'px'. Error in parsing value for property 'left'. Dec laration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :59.27): Expected end of valu e for property but found 'px'. Error in parsing value for property 'right'. De claration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :60.29): Expected end of valu e for property but found 'px'. Error in parsing value for property 'height'. D eclaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :62.35): Expected end of valu e for property but found 'px'. Error in parsing value for property 'padding-rig ht'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :65.36): Error in parsing val ue for property 'background'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :66.31): Expected color but f ound '"#FFFFFF"'. Error in parsing value for property 'color'. Declaration dro pped. CSS Error (http://www.trondheimvenstre.no/stil.css :69.21): Expected identifier for pseudo-class or pseudo-element but found ' '. Expected ',' or '{' but found 'relative'. Ruleset ignored due to bad selector. CSS Error (http://www.trondheimvenstre.no/stil.css :92.29): Error in parsing val ue for property 'background'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :93.23): Expected color but f ound '"#000000"'. Error in parsing value for property 'color'. Declaration dro pped. CSS Error (http://www.trondheimvenstre.no/stil.css :95.20): Expected end of valu e for property but found 'px'. Error in parsing value for property 'top'. Decl aration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :96.20): Expected end of valu e for property but found 'px'. Error in parsing value for property 'left'. Dec laration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :97.20): Expected end of valu e for property but found 'px'. Error in parsing value for property 'right'. De claration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :99.22): Expected end of valu e for property but found 'px'. Error in parsing value for property 'width'. De claration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :107.29): Error in parsing va lue for property 'background'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :109.20): Expected end of val ue for property but found 'px'. Error in parsing value for property 'top'. Dec laration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :110.21): Expected end of val ue for property but found 'px'. Error in parsing value for property 'left'. De claration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :112.20): Expected end of val ue for property but found 'px'. Error in parsing value for property 'width'. D eclaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :117.29): Error in parsing va lue for property 'background'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :119.20): Expected end of val ue for property but found 'px'. Error in parsing value for property 'top'. Dec laration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :120.21): Expected end of val ue for property but found 'px'. Error in parsing value for property 'left'. De claration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :122.20): Expected end of val ue for property but found 'px'. Error in parsing value for property 'width'. D eclaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :129.20): Expected end of val ue for property but found 'px'. Error in parsing value for property 'top'. Dec laration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :130.21): Expected end of val ue for property but found 'px'. Error in parsing value for property 'left'. De claration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :131.22): Expected end of val ue for property but found 'px'. Error in parsing value for property 'right'. D eclaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :134.29): Error in parsing va lue for property 'background'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :135.23): Expected color but found '"#000000"'. Error in parsing value for property 'color'. Declaration dr opped. CSS Error (http://www.trondheimvenstre.no/stil.css :139.29): Error in parsing va lue for property 'background'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :141.20): Expected end of val ue for property but found 'px'. Error in parsing value for property 'top'. Dec laration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :142.22): Expected end of val ue for property but found 'px'. Error in parsing value for property 'right'. D eclaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :144.20): Expected end of val ue for property but found 'px'. Error in parsing value for property 'width'. D eclaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :149.29): Error in parsing va lue for property 'background'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :151.20): Expected end of val ue for property but found 'px'. Error in parsing value for property 'top'. Dec laration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :152.22): Expected end of val ue for property but found 'px'. Error in parsing value for property 'right'. D eclaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :154.20): Expected end of val ue for property but found 'px'. Error in parsing value for property 'width'. D eclaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :160.20): Expected end of val ue for property but found 'px'. Error in parsing value for property 'top'. Dec laration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :162.21): Expected end of val ue for property but found 'px'. Error in parsing value for property 'right'. D eclaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :164.22): Expected end of val ue for property but found 'px'. Error in parsing value for property 'width'. D eclaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :167.29): Error in parsing va lue for property 'background'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :168.23): Expected color but found '"#000000"'. Error in parsing value for property 'color'. Declaration dr opped. CSS Error (http://www.trondheimvenstre.no/stil.css :172.29): Error in parsing va lue for property 'background'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :174.20): Expected end of val ue for property but found 'px'. Error in parsing value for property 'top'. Dec laration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :175.21): Expected end of val ue for property but found 'px'. Error in parsing value for property 'right'. D eclaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :177.20): Expected end of val ue for property but found 'px'. Error in parsing value for property 'width'. D eclaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :185.19): Expected color but found '"#99CC33"'. Error in parsing value for property 'color'. Declaration dr opped. CSS Error (http://www.trondheimvenstre.no/stil.css :186.19): Expected end of val ue for property but found 'pt'. Error in parsing value for property 'font-size' . Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :191.19): Expected color but found '"#99CC33"'. Error in parsing value for property 'color'. Declaration dr opped. CSS Error (http://www.trondheimvenstre.no/stil.css :192.20): Expected end of val ue for property but found 'pt'. Error in parsing value for property 'font-size' . Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :197.19): Expected color but found '"#394F16"'. Error in parsing value for property 'color'. Declaration dr opped. CSS Error (http://www.trondheimvenstre.no/stil.css :198.20): Expected end of val ue for property but found 'pt'. Error in parsing value for property 'font-size' . Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :203.19): Expected color but found '"#394F16"'. Error in parsing value for property 'color'. Declaration dr opped. CSS Error (http://www.trondheimvenstre.no/stil.css :204.20): Expected end of val ue for property but found 'pt'. Error in parsing value for property 'font-size' . Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :209.19): Expected color but found '"#212C10"'. Error in parsing value for property 'color'. Declaration dr opped. CSS Error (http://www.trondheimvenstre.no/stil.css :210.20): Expected end of val ue for property but found 'pt'. Error in parsing value for property 'font-size' . Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :215.19): Expected color but found '"#394F16"'. Error in parsing value for property 'color'. Declaration dr opped. CSS Error (http://www.trondheimvenstre.no/stil.css :216.20): Expected end of val ue for property but found 'pt'. Error in parsing value for property 'font-size' . Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :218.22): Error in parsing va lue for property 'font-weight'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :222.19): Expected color but found '"#99CC33"'. Error in parsing value for property 'color'. Declaration dr opped. CSS Error (http://www.trondheimvenstre.no/stil.css :223.19): Expected end of val ue for property but found 'pt'. Error in parsing value for property 'font-size' . Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :225.22): Error in parsing va lue for property 'font-weight'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :229.17): Expected color but found '"black"'. Error in parsing value for property 'color'. Declaration drop ped. CSS Error (http://www.trondheimvenstre.no/stil.css :230.20): Expected end of val ue for property but found 'pt'. Error in parsing value for property 'font-size' . Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :232.22): Error in parsing va lue for property 'font-weight'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :236.20): Unknown property 'h orizontal-align'. Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :237.19): Expected color but found '"#99CC33"'. Error in parsing value for property 'color'. Declaration dr opped. CSS Error (http://www.trondheimvenstre.no/stil.css :238.20): Expected end of val ue for property but found 'pt'. Error in parsing value for property 'font-size' . Declaration dropped. CSS Error (http://www.trondheimvenstre.no/stil.css :240.22): Error in parsing va lue for property 'font-weight'. Declaration dropped.
Assignee: jdunn → norwegian
Status: UNCONFIRMED → NEW
Component: Image: Layout → Norwegian
Ever confirmed: true
OS: Linux → All
Product: Browser → Tech Evangelism
QA Contact: tpreston → norwegian
Hardware: PC → All
Version: Trunk → unspecified
Attached file Working version ? —
Try this one. I removed all the errors from <http://www.trondheimvenstre.no/stil.css>, and ran it through the validator. There is still lots of warnings (for CSS 2), but I think you can safely ignore them. I haven't tested this stylesheet, so let us know if it works !
Thank you for your good and quick help! I tested the attachment locally, and it seems to render nearly correctly, at least better (and better than Opera's try with the broken version). Seems like I forgot to validate the CSS, and I thought the valid HTML rendered unstandard with MSIE (and Opera tried to imitate that behavior). I am not the webmaster, so I've notified him.
Thats great ! I'm always willing to help my fellow citizens. Although I don't vote for "Venstre" ;) If it doesn't render completely correct, I'm sure it's no problem to fix it. If you think this bug has outlived it's usefulness, please resolve it as WORKSFORME (since it was not a Mozilla problem). Oh, and the CSS validator is located at <http://jigsaw.w3.org/css-validator/>.
[bug248549notfixed]
Whiteboard: [bug248549notfixed]
Site no longer exists. Resolving as invalid.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: