This page tests AWeb's support for CSS1 and CSS2 properties via external stylesheets loaded with <LINK rel="stylesheet">. Rules live in css_test.css and are applied with element CLASS / ID selectors. See css_test.html for the same checks using inline STYLE. Layout regression (body background-repeat, four-value margins, table cells) is SS32. Parser stress tests are under Graceful Failure (SS31).
What you should see: Three paragraphs with different text alignment - left, center, and right, styled via external CSS classes.
|
Test: This paragraph should be left-aligned. The text should start at the left edge of the container. This paragraph should be center-aligned. The text should be centered within the container. This paragraph should be right-aligned. The text should end at the right edge of the container. |
What you should see: Text rendered in different font families via external CSS classes.
|
Test: This text should use Georgia font (or Times, or a serif font if neither is available). The font-family property supports comma-separated font lists. This text should use Arial font (or Helvetica, or a sans-serif font if neither is available). This text should use Courier font (or a monospace font if Courier is not available). |
What you should see: Text in various sizes using both absolute and relative font size keywords via external CSS classes.
|
Test: This text should be extra extra small (xx-small). This text should be extra small (x-small). This text should be small. This text should be medium (default size). This text should be large. This text should be extra large (x-large). This text should be extra extra large (xx-large). This text should be smaller than the base font size (relative). This text should be larger than the base font size (relative). SS3b: font-size 20px from stylesheet (length maps to discrete engine sizes). |
What you should see: Normal and italic text styles via external CSS classes.
|
Test: This text should be in normal (non-italic) style. This text should be in italic style. The font should appear slanted. |
What you should see: Normal and bold text weights via external CSS classes.
|
Test: This text should be in normal weight (not bold). This text should be in bold weight. The text should appear thicker. This text uses font-weight: 700 (equivalent to bold). |
What you should see: Text with line-through decoration via external CSS classes.
|
Test: This text should have a line through it (strikethrough). This text should have no decoration. |
Note: text-transform is parsed and stored, but full rendering support may be limited.
What you should see: Text transformed to uppercase, lowercase, and capitalize via external CSS classes.
|
Test: this text should be in uppercase THIS TEXT SHOULD BE IN LOWERCASE this text should have the first letter of each word capitalized |
Note: white-space: nowrap is fully supported.
What you should see: Text with nowrap preventing line breaks via external CSS classes.
|
Test: This is a very long line of text that should not wrap to multiple lines even if it extends beyond the container width because white-space is set to nowrap. |
What you should see: Text with different line heights via external CSS classes.
|
Test: This paragraph has line-height: 1.0 (tight spacing). This paragraph has line-height: 1.5 (normal spacing). This paragraph has line-height: 2.0 (loose spacing). |
What you should see: Text in various colors specified via external CSS classes.
|
Test: This text should be red (#ff0000). This text should be green (#00ff00). This text should be blue (#0000ff). This text should be a brown/tan color (#8B7355). This text should be gray (#666666). |
What you should see: Text with different background colors via external CSS classes.
|
Test: This paragraph should have a light red background (#ffcccc). This paragraph should have a light green background (#ccffcc). This paragraph should have a light blue background (#ccccff). This paragraph should have a beige/cream background (#F0EDEA). This paragraph should have a tan background (#E8E0D8). |
What you should see: Text colors using both hex values and CSS color names. Each pair should show the same color.
|
Test: Hex: This text should be red (#ff0000). Name: This text should be red (color name). Hex: This text should be blue (#0000ff). Name: This text should be blue (color name). Hex: This text should be green (#008000). Name: This text should be green (color name). Hex: This text should be black (#000000). Name: This text should be black (color name). Hex: This text should be brown (#A52A2A). Name: This text should be brown (color name). |
What you should see: Background colors using both hex values and CSS color names. Each pair should show the same background color.
|
Test: Hex: This paragraph should have a light red background (#ffcccc). Name: This paragraph should have a light red background with red text (color name). Hex: This paragraph should have a light blue background (#ccccff). Name: This paragraph should have a light blue background with blue text (color name). Hex: This paragraph should have a light green background (#ccffcc). Name: This paragraph should have a light green background with green text (color name). |
What you should see: Paragraphs with different padding amounts via external CSS classes.
|
Test: This paragraph has 5 pixels of padding. There should be a small amount of space around the text. This paragraph has 15 pixels of padding. There should be more space around the text. This paragraph has 30 pixels of padding. There should be a large amount of space around the text. |
What you should see: Paragraphs with margin shorthand property via external CSS classes.
|
Test: This paragraph has margin: 10px (all sides). This paragraph has margin: 10px 20px (top/bottom: 10px, left/right: 20px). This paragraph has margin: 10px 20px 30px (top: 10px, left/right: 20px, bottom: 30px). This paragraph has margin: 10px 20px 30px 40px (top: 10px, right: 20px, bottom: 30px, left: 40px). This paragraph has margin: 0 (no margins). |
What you should see: Paragraphs with different margin values via external CSS classes.
|
Test: This paragraph has margin-right: 50px. There should be extra space on the right side. This paragraph has margin-left: 50px. There should be extra space on the left side. This paragraph has margin-top: 30px. There should be extra space above. This paragraph has margin-bottom: 30px. There should be extra space below. This paragraph has margin-left: 1em and margin-right: 1em (using em units). |
What you should see: Elements positioned using absolute, relative, static, or fixed positioning via external CSS classes. Right and bottom positioning are now supported.
|
Test: This DIV uses position: static (default positioning).
This DIV uses position: relative with top: 10px and left: 20px offset.
This DIV uses position: absolute with top: 0px and left: 0px.
This DIV uses position: fixed with top: 0px and right: 0px.
This DIV uses position: absolute with bottom: 0px and right: 0px (positioned at bottom-right).
|
What you should see: Elements with borders of different widths, colors, and styles via external CSS classes.
|
Test: This DIV has a 1px solid black border.
This DIV has a 3px solid red border.
This DIV has a 2px dashed blue border.
This DIV has a 4px dotted green border.
This DIV uses separate border-width, border-style, and border-color properties.
|
What you should see: Table cells with different vertical alignment via external CSS classes.
Test:
|
What you should see: Table cells with different text alignment via external CSS classes.
Test:
|
What you should see: Table cells with different background colors via external CSS classes.
Test:
|
What you should see: Table cells with multiple CSS properties applied simultaneously via external CSS classes.
Test:
|
Note: Border properties (border-width, border-style, border-color, and border shorthand) are now fully supported.
What you should see: Tables with different border colors specified via external CSS classes.
Test:
|
What you should see: Links without underlines via external CSS classes.
|
Test: Normal link (underline depends on user setting): Click me (default underline) Link without underline: Click me (no underline) Link without underline and custom color: Click me (no underline, brown color) |
What you should see: Links with custom text colors via external CSS classes.
|
Test: |
What you should see: Unordered lists with different bullet styles via external CSS classes.
Test:
|
What you should see: Unordered lists displayed horizontally via external CSS classes.
Test:
Note: The list items should appear horizontally on one line, with spacing between them (using margin-left and margin-right with em units). No bullets should be visible. |
What you should see: Ordered lists with different numbering styles via external CSS classes.
Test:
|
What you should see: Definition lists displayed as a grid layout via external CSS classes.
Test:
Note: The grid layout creates a two-column structure where terms are in the first column and descriptions are in the second column, with spacing between them (grid-gap). |
What you should see: Grid layouts with different gap spacing via external CSS classes.
Test:
|
These tests mirror css_test.html CS48 but use rules in css_test.css. The body selector (background-repeat: repeat-y, background-color: #ffffff) applies to this whole document when this page is loaded.
What you should see: Pink-tinted DIV with large left margin, cyan UL near 20px, yellow two-column table (50% cells, top, asymmetric padding), plus standalone padding and 20px font samples.
|
Test: SS32 DIV: .css-ext-reg-div (margin 20px 40px 20px 300px).
SS32b: .padding-shorthand-asymmetric (padding 15px 35px 15px 15px). SS32c: .font-size-20px (duplicate check with SS3b).
|
The linked stylesheet includes intentionally invalid declarations above the class below. The browser must ignore the junk property and still apply the visible styling.
What you should see: Dark green text on pale green with border (CLASS ss-css-neg-junk).
|
Test: SS31: external stylesheet recovery after unknown property name. |