Slashdot Mirror


Firefox and Opera Fail the Acid2 Test

naylor83 writes "Four weeks ago, Opera's CTO Håkan Lie put forward the Acid2 challenge to the IE developers at Microsoft. The Web Standards Project has now silently published the promised browser test. Somewhat surprisingly, both Opera and Firefox fail to correctly render the test page. Obviously though, they're no where near as lousy as Internet Explorer. More screenshots are available at my blog, as well as at other people's."

17 of 281 comments (clear)

  1. So nothing can display it correctly? by Spudley · · Score: 5, Interesting

    Right. So none of the browsers tested can display the test page correctly? And they're the best, most compliant browsers available?

    And they've had how long to get it right?

    In that case, it would seem to me that it is the standard that is broken, if it's really that difficult to render a page with a cascading style sheet.

    --
    (Spudley Strikes Again!)
    1. Re:So nothing can display it correctly? by commonchaos · · Score: 5, Informative

      Not even Firefox supports all of CSS2.

      Google found an article that describes this in more detail

    2. Re:So nothing can display it correctly? by ciroknight · · Score: 4, Insightful

      I don't think the standard's broken persay, I just believe that programmers haven't yet implemented it completely/correctly. CSS2 is a very difficult standard to implement simply because it encompasses so much not only in code length, but in what it actually does. That being said, CSS2 is really ahead of its time (as is CSS3), but as the competition for the better browser roars up, you can bet your bottom dollar that these standards will be the key issues everyone is looking at.

      I really think it's going to be a tough race verses Firefox and Internet Explorer; Microsoft has more coders out there to throw at Internet Explorer, whereas Firefox already has industry leading stamina and good developmental practices, even if some of them are contraversial (disabling itf domains support, for example). Either way, the browsers will get better, and eventually will be able to render that page without any issue, but it'll just take time.

      --
      "Victory means exit strategy, and it's important for the President to explain to us what the exit strategy is." G.W.Bush
    3. Re:So nothing can display it correctly? by snorklewacker · · Score: 4, Insightful

      > Face it. We dropped the ball

      These people at the W3C dropped an incomplete spec out of their ivory tower with incoherent documentation, no functioning reference implementation, and no test suite, and we dropped the ball?

      --
      I am no longer wasting my time with slashdot
    4. Re:So nothing can display it correctly? by StrongAxe · · Score: 4, Insightful

      As Microsoft does have more of the market share, that shouldn't stop people from creating pages that don't work with Internet Explorer; they should be encouraged to do so, so that Internet Explorer would continue to evolve.

      And just who could afford to do this? If you run a commercial web site, do you want most of your customers to see a page that looks like crap, with a footnote at the bottom saying "We know your page looks like crap, but it's Microsoft's fault, and we hope they will have it fixed within the next two years"?

      What will happen is that your customers will go away until it gets fixed. Who loses? Microsoft? or you? Will Microsoft lose any sleep over the fact that you are losing customers? Very unlikely.

    5. Re:So nothing can display it correctly? by naylor83 · · Score: 4, Interesting

      Actually, it sucks big time. Here's a screenshot: Amaya having a go with some Acid

  2. What I'm looking for by scumdamn · · Score: 4, Insightful

    is an analysis of what failed with each browser (especially Firefox.) None of the links told us why the browser failed to render the smiley face or what the WSP did to obfuscate the code. Any takers?

  3. Re:So.. by oldosadmin · · Score: 4, Informative
    --
    Jay | http://oldos.org
  4. A big fat DUH! by Anonymous Coward · · Score: 5, Insightful

    It was known before the test was published that no browser would get it right. That's the whole point!

    The reason for having this is to expose bugs in current implementations. Internet Explorer is the obvious retard, implementing about 50% of CSS 2.1, but that doesn't mean that the other browsers can just slack off at 95%. That's not what the W3C is about, it's not what WASP is about, and it's not what this acid test is about.

  5. Re:FUD by Anonymous Coward · · Score: 4, Insightful

    In order for something to qualify as FUD, it has to be untrue.

    Given that Microsoft itself does not pretend that IE has a complete CSS 2.1 implementation, it cannot be FUD to state that it is obvious that IE will do worse on a test of CSS 2.1 than other browsers which do claim to implement that particular standard.

    Note also that many people consider CSS 2 to be overcomplicated and not very useful in practice. It is therefore not necessarily even a bad thing for a browser to fail this test - arguably, a browser that passed it would be bloated, as it would implement all sorts of things that are not necessary to view 99.99% of web pages. So to say that IE fails the test badly is not only not FUD - it isn't even (necessarily) a criticism!

    Any chance you could train your knees not to jerk so quickly, please?

  6. Re:Works just fine on W2K Advanced Server by styrotech · · Score: 4, Insightful

    Umm take the actual test this time, rather than looking at the reference image.

    I tried it on the pretty much the same machine as you (just plain Server vs Adv Server though), and it was the same hideous red mess shown in the IE screenshot.

  7. What browser did they use? by Macrobat · · Score: 5, Interesting

    Just out of curiosity...what browser did they use to get the successful reference rendering? I'm presuming there's one that successfully renders, otherwise, how do they know their test code is valid? I've clicked around but don't know what they used to generate that png.

    --
    "Hardly used" will not fetch you a better price for your brain.
  8. Re:So.. by Anonymous Coward · · Score: 4, Informative

    It's supposed to be invalid. The CSS specification defines error handling, and Internet Explorer gets it wrong. A conforming user-agent would never apply those rules.

    In fact it is necessary for this stylesheet to be invalid - otherwise it wouldn't test the error handling parts of the CSS specifications.

  9. The Real Lessons by welshbyte · · Score: 4, Insightful

    The real lessons to be learnt from this seem to be getting lost here. If we put aside the MS vs Moz, FUD vs non-FUD and not-as-broken vs either broken or not debates we can see that web designers should have something to look forward to in the (near?) future.

    Finally, here is something that could actually give the browser developers something to aim for and help to pull together the standardisation of modern CSS rendering. From how that smiley face is supposed to look I'm already quite excited about what we'll be able to do once all of the browsers are up to scratch.

    Now all we need is for the browser developers to take note of this, use it as a learning tool and a target to aim for and give the web design/development community a hell of a lot less stuff to debate about.

    It could happen...

    But of course, in addition to this they shouldn't let the acid2 test be a final goal and then just sit back and let themselves get rusty. Personally i'd like to see a publicly available acid test for all the new versions/revisions of CSS standards so that Joe Home User can more easily choose which browser to use. An acidN test once every 8 years?

    This is the fast moving world of technology, don't you know.

  10. Re:Valid CSS? by naylor83 · · Score: 5, Informative

    They deliberately made errors which the browsers should cope with according to the specs.

  11. Re:Valid CSS? by interiot · · Score: 4, Informative
    Yup, and I quote:
    • CSS parsing -- Acid2 includes a number of illegal CSS statements that should be ignored by a compliant browser.
  12. Re:Who's behind the test? by JimDabell · · Score: 4, Informative

    Firstly, the errors are there on purpose, to check the error handling conformance.

    As for whether the <textarea> is shrink-to-fit or not, the CSS 2.1 specification has this to say.

    If all three of 'left', 'width', and 'right' are 'auto' [This is the case] : First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if 'direction' is 'ltr' [This is the case] set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.

    The "rule number three" says that it is shrink-to-fit.

    Your mistake is in referring to 10.3.3, which explains what to do for non-replaced block-level elements in normal flow. You should be referring to 10.3.7, which explains what to do for non-replaced block-level elements that are absolutely positioned.