Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Microsoft

Microsoft Sends Broken Stylesheets to Opera 957

An anonymous reader writes "The Register has a story that the MSN homepage serves a different style sheet to the Opera web browser that makes Opera appear to be broken. Is this deliberate or a mistake? Who can possibly say? Opera's own take on the situation can be found here." This is not the first time.
This discussion has been archived. No new comments can be posted.

Microsoft Sends Broken Stylesheets to Opera

Comments Filter:
  • by jone1941 ( 516270 ) <`jone1941' `at' `gmail.com'> on Thursday February 06, 2003 @02:39PM (#5242852)
    am I mistaken or can't opera report itself as MSIE? In which case the only way it would get a bad CSS is if MS has evil extensions to CSS that will kill any browser except IE. Also, I'm no lawyer, but what are the legal implications of this? none is what I would guess. If you go to hotmail with Safari it will tell you that you can't use safari to check your hotmail account. Not to mention that I have had websites complain about mozilla, suggesting that I instead go get netscape 6...duh.
  • Identify As (Score:2, Informative)

    by OneBarG ( 640139 ) on Thursday February 06, 2003 @02:39PM (#5242856)
    I have Opera set to identify as MSIE 6.0. Maybe there's something I'm missing out on by doing so, but at least this way I don't get warnings from Hotmail or, as this article says, different pages.
  • by eddy ( 18759 ) on Thursday February 06, 2003 @02:41PM (#5242876) Homepage Journal

    ..is fucking irritating. Don't mess with it!

    NO! It it not necessary. It just makes things worse in the long run, so if you're doing this _you're_ part of the problem, so don't complain about how you have to treat browsers differently.

    Sheeesh. Write to the standards, not browsers.

    (And no, this isn't "insightful", it's totally _obvious_ to anyone with a clue)
  • by Malc ( 1751 ) on Thursday February 06, 2003 @02:43PM (#5242909)
    For a while I had to change my User-Agent string under Mozilla to that of IE6 under WinXP when visiting MSDN pages. Thanks Mozdev's uabar, and later Xulplanet's prefbar! Content served to Mozilla UA strings was unreadable with much of the text over-lapping. This went on for almost a year, but it seems to have been okay for about a month.

    Rather coincidentally, it was fixed shortly after I filled out a MSFT survey that appeared as I tried to leave the site - I claimed I was leaving because I was fed up with changing my UA string. Of course, I'm not conceited enough to think they fixed their problems because of me :D The whole time though, I had no problem with the MSDN subscriber downloads site, which even had a message for Netscape users.
  • Not broken anymore? (Score:2, Informative)

    by s.d. ( 33767 ) on Thursday February 06, 2003 @02:43PM (#5242914)
    I just tried what the Opera folks said, and it's giving me a page that is a much different size than they say they received, and doesn't appear to render incorrectly. I dunno, maybe MS "fixed it"...
  • www.wannabrowser.com (Score:5, Informative)

    by KalvinB ( 205500 ) on Thursday February 06, 2003 @02:45PM (#5242941) Homepage
    You can see how webpages react to various browsers at www.wannabrowser.com

    I'm not going to bother posting the results here but it's easy enough to see for yourself what the differences are.

    Ben
  • by geekoid ( 135745 ) <dadinportland@yah o o .com> on Thursday February 06, 2003 @02:45PM (#5242948) Homepage Journal
    NO, it's intentional. If you read the article, you see how it is only Opera that gets the error, even thoght opera works fine with the page that is sent for IE.
  • Maybe, but... (Score:2, Informative)

    by Domingos Neto ( 621498 ) on Thursday February 06, 2003 @02:45PM (#5242953)
    Perhaps MSN is doing that on purpose. But i'd rather think that what is really going on is what happens with every webmaster that needs to keep track of the one billion different browsers out there. You just can't do it, and sometimes it will break up.

    MSN (and other Microsoft sites) is very IE-centric. It uses several IE features, so probably it would already seem broken to Opera or Mozilla users. Probably that's why they serve a different stylesheet, to make the site work with other browsers. The reason why it doesn't work? Well... do you expect any Microsoft product to work flawlessly? ;o)

    Just kidding, of course. I think it doesn't work with Opera because nobody uses Opera anyway :o)

  • by sweetooth ( 21075 ) on Thursday February 06, 2003 @02:46PM (#5242969) Homepage
    Opera already can masquerade as any browser you want it to. That's been a feature of Opera for as long as I can remember.
  • by Enahs ( 1606 ) on Thursday February 06, 2003 @02:47PM (#5242980) Journal
    Um, I suppose you didn't read Opera's take on this; MSN's webserver(s) uses a special broken CSS for Opera. When using the stylesheet intended for IE6, Opera displays the page just fine.
  • by wrenkin ( 71468 ) <alex...cooke@@@utoronto...ca> on Thursday February 06, 2003 @02:47PM (#5242984) Homepage
    If you read the article you would see that Opera is perfectly capable of rendering the page that MSN sends to IE. If you change Opera to identify itself as IE, no problem.

    The problem here is that if you've set Opera to the report the true user-agent, MSN sends a page with a broken CSS file that tells the browser to render the content so that the page becomes unreadable--Here, they set a negative margin on content in some divs so that the first couple words in any column are overlapped by the div to the left, frustrating the viewer. Even IE chokes on the page they give to Opera:

    http://deb.opera.com/howcome/2003/2/msn/opera7.p ng

    This is sabotage.

    Read the original report here:

    http://deb.opera.com/howcome/2003/2/msn/
  • by joebp ( 528430 ) on Thursday February 06, 2003 @02:47PM (#5242987) Homepage
    am I mistaken or can't opera report itself as MSIE?

    Yes, it can.

    But why should it? It just encouranges the stupidity of most 'web designers' who look at logs and say 'Oh, 98% of visitors use MSIE5/6, no need to write correct code, just kludge some MS-only code together'. Lather, rinse, repeat.

    User-Agent string fascism and spoofing is a classic chicken and egg situation. Except the chicken in this case is an MCSE armed with MS Frontpage.
  • by Anonymous Coward on Thursday February 06, 2003 @02:49PM (#5243021)
    > Seriously, isn't this why the W3C tries to make people follow standards? So it doesn't matter what browser you use, it should all work?

    How the HELL did this get modded to 5?!? RTFA, the problem is MSN sending a perfectly-compliant, but deliberately flawed in values, CSS style sheet *only* to the Opera 7 browser. Note that the sheet values were chosen to instruct O7 to misrender the pages. Nothing the W3C can do about this, standards compliance wasn't the problem.
  • Re:Realplayer (Score:2, Informative)

    by Domingos Neto ( 621498 ) on Thursday February 06, 2003 @02:51PM (#5243046)
    MSN should be able to block non-IE browsers if they want. It's a free country.

    No, it shouldn't. Not when they have 90% of the market share. This is monopolium, not free competition, and the same rules don't apply in this case.

  • In fairness (Score:3, Informative)

    by Espen ( 96293 ) on Thursday February 06, 2003 @02:56PM (#5243112)
    This is also the company that came up with a web site that doesn't work in their own web browser! IE2, which came as the default install with Windows 95 can't access the Microsoft web site, especially not the IE download pages where you would go to update to a newer version. It doesn't even have the smarts to throw up a 'you must download a newer version from here' link. It simply fails with a scripting error. The only way to upgrade IE on a Windows 95 machine from the default install was to use IE2 to download Netscape, which could then be used to download a new version of IE. Nuts.
  • Re:Maybe, but... (Score:3, Informative)

    by arkanes ( 521690 ) <arkanes@NOSPAM.gmail.com> on Thursday February 06, 2003 @02:58PM (#5243152) Homepage
    Well, if you'd read the links, you'd know that this isn't a case of a rare browser not being allowed for (excusable behavior), but a specific fix targeted directly toward Opera - which doesn't need an extra stylesheet because it renders the IE specific one fine.
  • by Blademan007 ( 320541 ) on Thursday February 06, 2003 @02:59PM (#5243162)
  • by program21 ( 469995 ) on Thursday February 06, 2003 @03:03PM (#5243202) Homepage Journal
    It's one thing to follow standards (which IE does a little better as of late), it's another to intentionally sabatoge the display of a page in a competitor's browser.
    The IE6 stylesheet for msn.com works fine with Opera, it's a special stylesheet MS is sending to Opera (when identifying as itself) that causes the page to render horribly, not due to extensions, but to general crappy things to do (setting child elements 30 pixels left of the parent).
    If anything, MS is playing off Opera's adherance to standards here.
  • by n-baxley ( 103975 ) <nate.baxleys@org> on Thursday February 06, 2003 @03:10PM (#5243291) Homepage Journal
    I'd love to say you're right, but IE6 renders the spiral page just fine. At least on my WinXP box. Granted I had to crank open an IE window to find out since I use Mozilla. Adoption of standards by all browsers is of course the goal.
  • Re:Gimme a break (Score:2, Informative)

    by Weird_Hock ( 571445 ) on Thursday February 06, 2003 @03:15PM (#5243353) Homepage
    I wonder how many of those IE hits are from people like me who use Opera (or another browser) set to report that it's IE.
  • Ctrl-G (Score:2, Informative)

    by Tux2000 ( 523259 ) <alexander@@@slashdot...foken...de> on Thursday February 06, 2003 @03:19PM (#5243406) Homepage Journal

    So what ? Hit Ctrl-G (to switch to user stylesheets defined in Opera) and you can see the MS content. If you love your mouse, hit the "Page" icon left of the address bar labeled "Toggle between author mode and user mode". Repeat this step after you changed to a non-broken page to see the original styles again.

    BTW: MS is not the only one who has broken style sheets. But most other pages I've seen used broken style sheets accidentally. And yes, Ctrl-G helped with those pages.

    Tux2000

  • sure, but Opera is also available for iTv, Smartphone, symbian and verticals and those are markets MS would love to enter and konquer...

    People have to stop thinking that the PC is all there is on the net...
  • by critter_hunter ( 568942 ) <critter_hunterNO@SPAMhotmail.com> on Thursday February 06, 2003 @03:21PM (#5243440)

    MSDN [microsoft.com] has a similar behavior. I don't give a shit about MSN, but I needed to download the DirectX 8.1 SDK (to use OGRE [sf.net]) the other, and it was hell. I fact, I needed to identify as Mozilla 5 to see more than a few unrelated links on this page [microsoft.com] (try it if you have Opera. Change your identifier and reload the page)

  • by governorx ( 524152 ) on Thursday February 06, 2003 @03:22PM (#5243451)
    The original point was very valid and you are the one that is missing the point. The argument that it should be standardized is very valid because the content you recieve from a website should not depend on your browser type. Hence the goal of a global standard is to ensure compatibility across multiple platforms (in this case a software platform).

    Also, by addressing this area of concern, no flawed values would be present due to a difference in browser types - merely by other errors.

    OTOH (On the other hand) remember that programmers make mistakes, and someone who has to write web pages using different syntax and markups can make mistakes if they are more comfortable writing for a different browser (i.e. I.E.). They are working for MS after all.
  • by pmz ( 462998 ) on Thursday February 06, 2003 @03:25PM (#5243489) Homepage
    Sounds a lot like how they killed DR-DOS, but on a smaller scale.

    I wouldn't be suprised if there are many more Opera users than there were DR-DOS users. The number of PCs has exploded in the past several years, and Opera is a pretty well-known name among browsers.
  • by Midnight Thunder ( 17205 ) on Thursday February 06, 2003 @03:28PM (#5243517) Homepage Journal
    I just made my install of Mozilla pretend it was Opera, by adding the following to the user.js file:

    user_pref("general.useragent.override", "Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.1) Opera 7.0 [en]");

    I restarted Mozilla (1.3a), checked the about page (it shows the user agent) and then visited the MSN page. The page showed up fine. I thought that maybe that maybe MS had changed the CSS. I downloaded the style sheet in Mozilla and saw the -30 there. From what I can tell Mozilla must have a check to ensure that text does not appear outside of the cell, not matter what the css indicates. If Mozilla can do it, then the guys over at Opera can do it too.

    Note - I am not saying that this clears MS, as any well implemented web site should only need one version of any page, unless they have localization. What I am saying is that this is a fixable issue on the part of Opera.
  • by spongman ( 182339 ) on Thursday February 06, 2003 @03:28PM (#5243519)
    remember that v7 was only release last week. the page in question appears to render correctly on the previous version (although it's just a bug in the browser hiding the bug in the stylesheet).
  • by curtisk ( 191737 ) on Thursday February 06, 2003 @03:31PM (#5243555) Homepage Journal
    No it doesn't......check the menu bar on left....its not transparent to the shell in the background...and the shell in the background of the blue area is fixed and moves with the scrolling of the page, it shouldn't....get Opera or any of the browsers that the page mentions and you'll see the difference. I just looked with IE6 /WinXP Pro and Opera7 / WinXP Pro and there is a difference
    Yes, you can see the page, but it's not doing WHAT it SHOULD.
  • Re:Bad autodetection (Score:4, Informative)

    by An Onerous Coward ( 222037 ) on Thursday February 06, 2003 @03:36PM (#5243618) Homepage
    1) No, it's not faulty autodetection. It's correctly determining which browser is making the request. It's correctly sending different stylesheets based on the user-agent string. The problem is, the stylesheet itself is written in an incomprehensibly stupid way.

    The fact that it only sends the broken sheets to Opera 7 would indicate that someone at MSN wants to hurt the reputation of Opera's latest offering.

    2) No. Nobody should have to browse with a false user-agent string. Period. The fact is, as much as we like standards, every browser has its own quirks and problems that must be worked around if you want to give all browsers the same experience.

    A good webmaster can use the agent string to greatly improve the browsing experience for everyone. But bad ones use the information to mess with users of specific browsers[*], or to deny them access altogether, even though the vast majority of websites I've entered under false pretenses worked just fine.

    The whole issue is about respect. Microsoft is not respecting my decision to use a non-IE browser. Coding to standards and ensuring cross-browser correctness shows respect to everyone who views your site. Locking out users of browsers you don't like shows disrespect for those who don't share your browser preferences.

    [*] Not always to IE users' benefit. I remember one slashdotter who rigged his site so that anyone using IE ended up listening to the musical stylings of William Shatner.
  • by Okojo ( 614529 ) on Thursday February 06, 2003 @03:38PM (#5243652)
    Actually I spoke too soon and am going to take back what I said. I loaded up the page in Opera 6.0 and the margin -30 is supposed to fix a bug in Opera 6.0's rendering of lists. In fact, it's the very same problem I ran into while designing some webpages a few weeks ago that annoyed me to no end. Basically, Opera 6.0 indents list items by about 30 pixels to the right, unlike other browsers. Thus that -30 value is there to correct that problem. Opera 7.0 doesn't exhibit that tabbing effect (thus consistant with the latest IE and Mozilla browsers). Apparently MSN is serving Opera 7.0 the same CSS sheet as Opera 6.0 even though 7.0 works best when it's served the same style sheet as IE. Thus, saying that this problem is browser sabotage is too strong of an accusation.
  • by Rui del-Negro ( 531098 ) on Thursday February 06, 2003 @03:40PM (#5243671) Homepage
    Opera always includes "Opera" in the ID string (ex.: "Mozilla/4.0 (compatible; MSIE 5.0; Windows 2000) Opera 6.05 [en]"). Which sort of defeats the whole point of identifying as a different browser. It'll only fool scripts that first check for "MSIE" and, if they find it, don't even bother looking for "Opera". All other scripts will still see it's Opera.

    RMN
    ~~~
  • by Aquitaine ( 102097 ) <sam@ia[ ]m.org ['msa' in gap]> on Thursday February 06, 2003 @03:40PM (#5243677) Homepage
    I disagree with your disagreement completely. :)

    I suspect you can write a page that works in every browser that looks decent. I also suspect that, in doing so, you are violating W3C WAI guidelines, or at least being shortsighted in your compliance with them.

    (I could be wrong about that, I have no idea who you are or what work you do. This is simply my general experience and please pardon me for jumping on you!)

    The biggest problem with supporting every browser is that you're mixing up content with layout. You are most likely using tables for layout; if you know how to make a page look good in NS4 without doing that, let me know. The problem with this is that assistive devices try to comprehend your page by seperating content from layout, and tables are supposed to be used for content, and CSS for layout. But NS4 doesn't even begin to support that properly. This is an issue right now for WAI people and those of us who have to make our sites 508 compliant, but it's going to be more of an issue in the future as all browsers will need to clearly differentiate between layout and content.

    We made the decision to simply stop supporting NS4 and comply with HTML 4.0 and CSS2. These are no longer cutting edge standards, and it does give our designers a lot more freedom in how a site looks. Yes, they -could- design something to work in every browser (and we did, until recently) but it is a whole lot of extra work to design something with tables and deal with all of the stuff that entails. So it's not a 'we're too dumb' thing, it's a 'we'd rather devote our creative energies to something that complies with standards that are now a couple years old than support a browser > 3% of people still use.'

    And if we get someone who complains that they can't access our stuff with NS4, we mail them a CD with Mozilla or Phoenix. Your tax dollars at work.

    Cheers,
    Aquitaine
    Program on Employment and Disability
    Cornell University
  • Re:i dunno (Score:3, Informative)

    by hkmwbz ( 531650 ) on Thursday February 06, 2003 @04:07PM (#5243971) Journal
    Oh yeah [opera.com]...
    "To test this, the User-Agent filed was changed slightly -- from "Opera" to "Oprah". Since there is no "Oprah" browser on the market, one assumes that MSN has not created special versions for it.
    ...
    Looking into this 37k file, we find a reference to the same style sheet as MSIE6 receives. Just to make sure the server does not modify this style sheet before sending it to the browsers, we fetch the style sheet with the "Oprah" browser:
    ...
    The resulting file is identical to the one MSIE6 receives. Therefore, MSN looks for "Opera" in the User-Agent string and on purpose send Opera7 a style sheet which distort pages."
    So it would seem that Opera was specifically targeted.
  • Re:Who uses Opera (Score:3, Informative)

    by SacredNaCl ( 545593 ) on Thursday February 06, 2003 @04:10PM (#5244000) Journal
    1) Tabbed Browsing. Not for everyone, but I love
    it.
    2) Mouse gestures. Another control method is
    great
    3) Speed and it's not an M$ product


    4) Ability to disable/enable cookies/plugins/javascript/java/referrer logging/ gif animation/annonying embedded audio/popups from a single panel by pressing F12. Very handy.

    5) Ability to turn graphics off completely.

    6) Good CSS support (Opera7)

    7) Zoom feature -- handy for guys like me with coke bottle glasses.

    When I have to use other computers that don't have Opera or Mozilla installed it's a painful experience.

  • by FuzzyBad-Mofo ( 184327 ) <fuzzybad@noSpAm.gmail.com> on Thursday February 06, 2003 @04:13PM (#5244027)

    Here's a tip for including CSS without having to worry about NS4 and (I think) IE4 screwing it up:
    Use the CSS2 @import rule to import your style sheet.

    The version 4 browsers will ignore this tag, therefore you don't have to worry about crashing NS4 with your perfectly valid CSS.
    Example:

    <style type="text/css" media="all">@import url(main.css);</style>
  • by spongman ( 182339 ) on Thursday February 06, 2003 @04:15PM (#5244045)
    actually their assessment of 'just fine' is incorrect.

    there is a non-standard 38 pixel indentation that Opera6 applies to lists. the change in the stylesheet is designed to overcome this bug. the rendering in Opera6 may look 'just fine' but in fact there's extra space in there that shouldn't be.

    the fix in Opera7 means that the stylesheet causes the list to be indented 38px to the left.

  • Re:Oddity to me (Score:3, Informative)

    by djrogers ( 153854 ) on Thursday February 06, 2003 @04:22PM (#5244158)
    Actually, MS (used to?) do this with support.micrsoft.com and Mozilla - they'd send broken difficult to read pages, however if you changed your user agent string, Voila - rendered exactly the way it did in IE. Like the story said, this ain't the first time...
  • Doubtful. (Score:3, Informative)

    by RatBastard ( 949 ) on Thursday February 06, 2003 @04:27PM (#5244261) Homepage
    I really doubt it's an accident as Opera7 renders the page perfectly when fed the IE6 CSS file.

    But this doesn't prove that management dictated this. It could have been some jackass web monkey deciding to Fight The Good Fight. Especially as it looks like it's been fixed already.

    Not everything a huge company does is dictated from the top. Sometimes you get overzealous jerks in the lower ranks trying to be cute.
  • by pnatural ( 59329 ) on Thursday February 06, 2003 @04:37PM (#5244413)
    [...] what choice does the user have?

    fdisk

    'nuff said.
  • Re:Actually (Score:3, Informative)

    by poot_rootbeer ( 188613 ) on Thursday February 06, 2003 @06:31PM (#5245449)
    I think the problem is that people need to move away from Microsoft web deveopment tools until they can learn to play nice and output standards-compliant HTML code. Ever try using the "save as HTML" feature in a Microsoft product? A 100-row table becomes a 2MB plaintext file by the time it makes it to the web...

    While MS Office's "save as HTML" feature does not create compact or attractive code, it does not diverge from any HTML or CSS standards that I'm aware of. It just adds MORE tags and attributes to the standards, things for precise formatting control that aren't possible through simple HTML code and that the user agent is expected to ignore if it doesn't understand them.

    "Clean" code and "Standards-compliant" code are not the same thing...

  • Re:Bad autodetection (Score:5, Informative)

    by Mitreya ( 579078 ) <mitreya@@@gmail...com> on Thursday February 06, 2003 @06:37PM (#5245523)
    The fact that it only sends the broken sheets to Opera 7 would indicate that someone at MSN wants to hurt the reputation of Opera's latest offering.

    If you read the discussion and set your filter below "+5 for loudly bashing MS", you would notice that Opera6.0 had a problem that was FIXED BY -30 OFFSET. So what you're looking at is the inability to distinguish between opera6.0 and opera7.0. Or, essentially bashing for the (somewhat screwd up) fix of opera6.0.

    What truly amazes me is that opera.com description of the problem fails to mention that. I have to say that MSN guys come out looking *far better* than the Opera.

  • by Fweeky ( 41046 ) on Thursday February 06, 2003 @08:22PM (#5246505) Homepage
    Actually, it looks suspiciously like someone setting margin in a misguided attempt to work around a "problem" with padding; in the CSS box model, each box has two measurements to define how things flow around it; padding, which is inside the box but outside the content, and margin, which is outside the box.

    The problem is not all browsers apply margin and padding the same to elements; for example, Mozilla and IE give the body tag a margin, Opera gives it padding (as recommended by the W3C and common sense). Web weenies often try to remove this by setting margin: 0; while neglecting to set padding. A naive way to fix this would be to serve a stylesheet specifically to Opera setting margin to a *negitive* value of whatever padding happens to be set to, thus pulling the padding outside the viewport; the correct solution is obviously to just set padding: 0;.

    Lists are similar; if you don't set margin *and* padding, you're liable to have things like this happen, because you've not defined what you want fully. This is especially true of lists, which are often built up quite differently in different browsers.

    So, no need to go overboard on the conspiracy theories; this looks more like a web weenie who doesn't quite know what he's doing. I guess this is what happens when you hire graduates straight out of college ;)
  • by Anonymous Coward on Thursday February 06, 2003 @09:11PM (#5246859)
    Er, people, hang on a sec. If the stylesheet specifies a negative offset and Mozilla disregards it, the bug is with Mozilla and not Opera.

    Why should Opera "fix" their browser to display the WRONG thing?
  • by spectecjr ( 31235 ) on Thursday February 06, 2003 @11:43PM (#5247770) Homepage
    Microsoft didn't do anything of the kind.

    1st piece of evidence:

    Amaya and Netscape Nav 4.7 both get fed the same stylesheet that Opera gets. Indicating that the site checks for Netscape 6 and above, and IE 6 and above only, providing a default style sheet to all other browsers.

    2nd piece of evidence:

    Mozilla gets the Netscape 6 stylesheet, which has the SAME bug that the default (passed to Opera) stylesheet has. The same -30px margin is passed to it, but Mozilla renders it correctly (latest build).

    3rd piece of evidence:

    Netscape Navigator 4.7 MANGLES the front page of MSN if you set the margin-left property to 0px instead of -30px. Here's NS4.7 showing the page with a modified site.css stylesheet:
    http://home.earthlink.net/~simoncooke /ns47.png

    Whereas here is Netscape Navigator 4.7 using the unmodified stylesheet (the same one passed to Opera):

    http://home.earthlink.net/~simoncooke/ns47orig.p ng

    Now, if you take a look at most sites, you will see that the most popular browsers are IE, followed by Netscape Navigator 4.7, followed by Netscape 6.x (including Mozilla), and finally trailed VERY FAR BEHIND by Opera.

    http://www.sla.org/stats/conf2003/conf2003_sep02 /l astmonth_07_b.htm

    Now if you were to realistically act as a site designer, you would go out of your way support IE, Netscape 6.x and company, and Netscape 4.7 -- which is the 2nd most used browser in the world.

    And guess which browser needs a bugfix so that it doesn't crash when you pass it a stylesheet it doesn't understand, and so that it doesn't screw up the layout?

    Yep, that's right, Netscape 4.7. Our 2nd place winner, and the one that this "horrible, Opera breaking stylesheet" was *actually* written for.

    You know, a little research and a little critical thinking might not have set you down this path in the first place.

    Simon
  • by zcat_NZ ( 267672 ) <zcat@wired.net.nz> on Friday February 07, 2003 @02:20AM (#5248460) Homepage
    Did you read the fucking article?

    If you download the page and style-sheet (using wget) while identifying yourself as IE or any other browser than Opera, you set sent a web page and style sheet that renders properly in IE, and in Netscape, and in Opera.

    If you download the page (using wget) identifying yourself as Opera7, you get a page that looks broken not just in Opera, but in every other browser too, including IE because the style sheet says to render it in a way that looks 'broken'.

  • by van_grieg ( 648384 ) on Friday February 07, 2003 @04:05AM (#5248781)
    Mozilla gets the Netscape 6 stylesheet, which has the SAME bug that the default (passed to Opera) stylesheet has. The same -30px margin is passed to it, but Mozilla renders it correctly (latest build).
    True. But since the page has no DOCTYPE declaration, Mozilla goes into the quirks mode, emulating Netscape 4.x bugs.
  • by howcome ( 618813 ) <howcome AT opera DOT com> on Friday February 07, 2003 @05:08AM (#5248813) Homepage
    This is not correct.

    Opera6 shows the page that MSIE6 receives just fine. I even included a screenshot of it on my page [opera.com] -- scroll down to the second image.

    If you still believe this is Opera6's fault, please provide a test case showing how it fails.
  • by pnot ( 96038 ) on Friday February 07, 2003 @06:08AM (#5248924)
    and actually perform your own tests (which it's quite plain you didn't, because if you had, you'd have seen exactly what I did).

    One thing, though: it may have been changed between the time Opera did their tests and you did yours. this post [slashdot.org] seems to suggest so, anyway.
  • by zcat_NZ ( 267672 ) <zcat@wired.net.nz> on Friday February 07, 2003 @06:16AM (#5248941) Homepage
    OK. I read the article again, and I admit that I got some of it wrong. I'm still not totally convinced however.

    Am I correct in my understanding that the style sheet being returned for Opera and Mozilla is technically 'broken' as far as standards goes, and only works/worked because Opera didn't and Netscape still doesn't properly handle
    "margin: -2px 0px 0px -30px;" ? Properly, it should move the text outside the frame the way this version currently renders in IE and Opera 7 ?

    I'll also accept your word that MSN is -currently- returning a page that refers to 'site.css' for unidentified browsers. The opera.com article is quite specific that at the time they tested, it was referring to the IE version for unidentified browsers and it's possible that MSN changed it recently.

    I stand behind the rest of my inflamatory rant. I can't see any reason why they'd send a special version when (I'm trusting opera.com's screenshots here) opera7 and opera 6 both render the "IE" version perfectly well. That's the entire POINT of CSS.

    Conclusion; I accept that I grossly oversimplified, but I'm still left with the very strong feeling that MSN are sending different versions of CSS to try and break browsers, rather than to try and compensate for them.

In the sciences, we are now uniquely priviledged to sit side by side with the giants on whose shoulders we stand. -- Gerald Holton

Working...