CSS Import Test - Test 46

Introduction

WARNING!!! This test is quite complex, and I have not yet carefully verified it. Please report any errors you find!

This set of sub-tests examines compliance with Section 14.3.2 and Section 14.6 of the HTML4.0 specification, and section 19.6.1.2 of the HTTP 1.1 RFC (RFC 2068), amongst a whole load of other things.

See, for instance, tests 34 and 35 of the main test suite. Note, however, that other tests of Part I are also relevant to this test. This test should only be attempted once all of the main test suite is passed. It will be of no help otherwise.

Tests

46a. First persistent stylesheet. This should be green.

46b. Second persistent stylesheet. This should be green.

46c. First preferred stylesheet. This should be green at first.

46d. Second preferred stylesheet. This should be green at first.

(46e). First alternative stylesheet (set one). This should be unstyled at first.

(46f). Second alternative stylesheet (set one). This should be unstyled at first.

(46g). Third alternative stylesheet (set two). This should be unstyled at first.

How to decide if the browser has passed

  1. First, take a note of the colours of the above tests as they appeared when the page was first displayed. If all the tests are unstyled, then the browser should be given the failed designation (N). Otherwise, continue on to the next step.

  2. Next, once again look at the colours of the above tests as they appeared when the page was first displayed. If any of the tests are red, or if some (but not all) of the first four are unstyled, then the browser should be given the buggy designation (B). Otherwise, continue on to the next step.

  3. If the browser passed the first two steps, then find the option in the UI that controls alternative stylesheet selection. If the UA is missing such this UI feature, then the browser should be given the failed designation (N). Otherwise, continue on to the next step.

  4. If the UI is not showing any options, i.e. if it is unaware that this page has at least four different alternate stylesheets available, then mark it as failed (N). Otherwise, continue on to the next step.

  5. Ensure the current selection (if it is shown) is "Preferred Set". Also check that only there are exactly three options available (they are likely to be called "Preferred Set", "Alternative Set One" and "Alternative Set Two"). If the UA does not provide this information, or if it does not list Preferred Set as being selected, or if there is more than one option, or if it calls them different things, then that is not against the spec, just pathetic. Either way, continue on to the next step.

  6. Change the selection to "Alternative Set One" (or whatever looks most likely to stand for "Alternative Set One"), and apply the change (this may involve click OK or APPLY, or it may be automatic). If the browser immediately crashes, then the browser should be given the buggy designation (B). Otherwise, continue on to the next step.

  7. Check that, in the six test paragraphs above, the following conditions are now met:

  8. If the test paragraphs change to match the above description, then the browser can be classified as having passed (Y) otherwise it is buggy (B).

Note. Some browsers have had plugins written for them that enables this behaviour. For example, the latest releases of Windows and Mac Internet Explorer have Javascript applets that let you change between alternative stylesheets. If your browser has such an applet, then please submit the results for your browser with the applet, and then give information (preferably a uri) about the plugin in the comments section of the main test page.