CSS Import Test - Test 36

Introduction

This set of sub-tests examines compliance with the last part of Section 14.3.2 in the HTML4.0 specification, setting the preferred stylesheet using HTTP headers.

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

Tests

36a. First preferred stylesheet. This should be green at first.

(36b). Second preferred stylesheet. This should be unstyled at first.

(36c). First alternative stylesheet. This should be unstyled at first.

(36d). Second alternative stylesheet. This should be unstyled at first.

How to decide if the browser has passed

  1. If the first paragraph (36a) is green and the next three paragraphs (36b-36d) are unstyled, then the test should be deemed passed (Y).

  2. If 36b is red, then the browser should be deemed buggy (B).

  3. If all the lines are unstyled, then the browser should be deemed a maybe (M).

  4. Otherwise, the test should be deemed failed (N).

Or, if you prefer, use the following table to decide what the result should be. Simply find the row that corresponds to the list above, and read off your result from the final column.

36a36b36c36dResult
UnstyledUnstyledUnstyledUnstyledM
UnstyledUnstyledUnstyledRedN
UnstyledUnstyledRedUnstyledN
UnstyledUnstyledRedRedN
UnstyledRedUnstyledUnstyledB
UnstyledRedUnstyledRedB
UnstyledRedRedUnstyledB
UnstyledRedRedRedB
GreenUnstyledUnstyledUnstyledY
GreenUnstyledUnstyledRedN
GreenUnstyledRedUnstyledN
GreenUnstyledRedRedN
GreenRedUnstyledUnstyledB
GreenRedUnstyledRedB
GreenRedRedUnstyledB
GreenRedRedRedB

Note that a UI should be present that allows you to switch the colours over, making either 36c and 36d red while turning 36a and 36b to the unstyled state, or making 36a, 36c and 36d unstyled while making 36b red. This is examined by test 35.