CSS Import Test - Test 59

Introduction

This set of sub-tests examines the cooperation of alternative and media dependent stylesheets.

All stylesheets imported by this page use the HTML LINK method. See test 2 of the main test suite.

Tests

59a. Persistent stylesheet for all media. This should always be green.

59b. Persistent stylesheet for screen, tv and projection media. This should always be green.

(59c). Persistent stylesheet for tty media. This should always be unstyled.

59d. Preferred stylesheet for all media. This should be green at first.

59e. Preferred stylesheet for screen, tv and projection media. This should be green at first.

(59f). Preferred stylesheet for tty media. This should always be unstyled.

(59g). Alternative stylesheet for all media. This should be unstyled at first.

(59h). Alternative stylesheet for screen, tv and projection media. This should be unstyled at first.

(59i). Alternative stylesheet for tty media. This should always be unstyled.

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. They should look like this:

    59a. Persistent stylesheet for all media. This should always be green.

    59b. Persistent stylesheet for screen, tv and projection media. This should always be green.

    (59c). Persistent stylesheet for tty media. This should always be unstyled.

    59d. Preferred stylesheet for all media. This should be green at first.

    59e. Preferred stylesheet for screen, tv and projection media. This should be green at first.

    (59f). Preferred stylesheet for tty media. This should always be unstyled.

    (59g). Alternative stylesheet for all media. This should be unstyled at first.

    (59h). Alternative stylesheet for screen, tv and projection media. This should be unstyled at first.

    (59i). Alternative stylesheet for tty media. This should always be unstyled.

    If they do not match this, the browser should be given the buggy designation (B). Otherwise, continue on to the next step.

  2. If the browser passed the first step, 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.

  3. Ensure the current selection (if it is shown) is "Preferred Set". Also check that only there are only two options available (they are likely to be called "Preferred Set" and "Alternative Set"). 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.

  4. Change the selection to "Alternative Set" (or whatever looks most likely to stand for "Alternative Set"), 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 crashed designation (C). Otherwise, continue on to the next step.

  5. Check that the test paragraphs above look like this:

    59a. Persistent stylesheet for all media. This should always be green.

    59b. Persistent stylesheet for screen, tv and projection media. This should always be green.

    (59c). Persistent stylesheet for tty media. This should always be unstyled.

    59d. Preferred stylesheet for all media. This should be green at first.

    59e. Preferred stylesheet for screen, tv and projection media. This should be green at first.

    (59f). Preferred stylesheet for tty media. This should always be unstyled.

    (59g). Alternative stylesheet for all media. This should be unstyled at first.

    (59h). Alternative stylesheet for screen, tv and projection media. This should be unstyled at first.

    (59i). Alternative stylesheet for tty media. This should always be unstyled.

    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.