W3CWeb Accessibility Initiative Home

Ignore author and user style sheets

On this page: Test 1 | References | About these tests

Nearby: More HTML 4.01 Tests | UAAG 1.0 Test Suite

UAAG 1.0 Requirement

Checkpoint 4.14 Choose style sheets (Priority 1 )
Provision 3 : Allow the user to turn off (i.e., ignore) author and user style sheets.

Test 1 :

Procedure

  1. Disable author persistent, preferred, and alternate style sheets, as well as any user style sheets.

Run test

When using the author persistent style sheet, the text in this paragraph should be black with a white background and there should be a 1 pixel black border on all sides of the paragraph. When using the author persistent style sheet, the text in this paragraph should be black with a white background and there should be no border on any side of the paragraph. When using the author alternate style sheet, the text in this paragraph should be white with a black background and there should be no border on any side of the paragraph. When using the test user style sheet linked below, the text in this paragraph should be blue with a white background.

When using the author persistent style sheet, the text in this paragraph should be green with a white background and there should be a 1 pixel black border on all sides of the paragraph. When using the author persistent style sheet, the text in this paragraph should be green with a white background and there should be no border on any side of the paragraph. When using the author alternate style sheet, the text in this paragraph should be white with a green background and there should be no border on any side of the paragraph. When using the test user style sheet linked below, the text in this paragraph should be blue with a white background.

When using the author persistent style sheet, the text in this paragraph should be red with a white background and there should be a 1 pixel black border on all sides of the paragraph. When using the author persistent style sheet, the text in this paragraph should be black with a red background and there should be no border on any side of the paragraph. When using the author alternate style sheet, the text in this paragraph should be white with a red background and there should be no border on any side of the paragraph. When using the test user style sheet linked below, the text in this paragraph should be blue with a white background.

Link to test user style sheet

Expected results

  1. When the user disables author persistent, preferred, and alternate style sheets, as well as any user style sheets, the test text should be rendered with no styling.
  2. Generally, this unstyled text will be a black serif font with a white background. This text should generally be of a medium font-weight with no decoration or border.

Source code

(Code contained in the HTML document head)

<meta http-equiv="Content-Style-Type" content="text/css"/>
<link href="cp0414-persistent.css" rel="stylesheet" type="text/css"/> <link href="cp0414-preferred.css" title="Author Preferred" rel="stylesheet" type="text/css"/>
<link href="cp0414-alternate.css" title="Author Alternate" rel="alternate stylesheet" type="text/css"/>

(Code contained in the HTML document body)

<p class="black">When using the author persistent style sheet, the text in this paragraph should be black with a white background and there should be a 1 pixel black border on all sides of the paragraph. When using the author persistent style sheet, the text in this paragraph should be black with a white background and there should be no border on any side of the paragraph. When using the author alternate style sheet, the text in this paragraph should be white with a black background and there should be no border on any side of the paragraph. When using the test user style sheet linked below, the text in this paragraph should be blue with a white background.</p>
<p class="green">When using the author persistent style sheet, the text in this paragraph should be green with a white background and there should be a 1 pixel black border on all sides of the paragraph. When using the author persistent style sheet, the text in this paragraph should be green with a white background and there should be no border on any side of the paragraph. When using the author alternate style sheet, the text in this paragraph should be white with a green background and there should be no border on any side of the paragraph. When using the test user style sheet linked below, the text in this paragraph should be blue with a white background.</p>
<p class="red">When using the author persistent style sheet, the text in this paragraph should be red with a white background and there should be a 1 pixel black border on all sides of the paragraph. When using the author persistent style sheet, the text in this paragraph should be black with a red background and there should be no border on any side of the paragraph. When using the author alternate style sheet, the text in this paragraph should be white with a red background and there should be no border on any side of the paragraph. When using the test user style sheet linked below, the text in this paragraph should be blue with a white background.</p>
<p><a href="cp0414-user2.css">Link to test user style sheet</a></p>

References

  1. HTML 4.01 specification for External Style Sheets

About this test suite

This test is part of a test suite for the User Agent Accessibility Guidelines (UAAG) 1.0 . This work is conducted by the User Agent Accessibility Guidelines Working Group , which is part of W3C's Web Accessibility Initiative (WAI) . Please send comments on this test to w3c-wai-ua@w3.org ( public archive ).


Test created by:

Last modified: $Date: 2003/04/02 23:46:41 $ by $Author: jongund $