flexHTML: CSS tests

a:hover styling tests

Version 1.1 (May, 2003)

Explanation

Last year I came across a very odd behavior in Internet Explorer 6 while working on a design: if I ran the cursor over the last link on one page, part of a floated image was cut off. I had no idea what to make of the problem until I read Owen Briggs' description of the “jumping link guillotine bug” when it was mentioned on css-discuss.

I set out to find a solution, but wasn't successful. However, I saw such odd things that I decided to make my tests available to you all—and that's a good number of people, thanks mostly to Mr. Briggs' noticing this little test suite and linking to it.

It seems, from my experimenting, that at least three links, rendered on separate lines and following the floated object in the HTML, must be present for the guillotine bug to be triggered. Hence my test page consists of a list of three links and a floated little photograph of myself despairing over IE's CSS support!

The document type is XHTML 1.0 Strict (since I read that text/html is not a valid MIME type for XHTML 1.1, ahem). The CSS is in the head of each file. Only the a:hover rule differs between files.

Tests

Single declarations set on a:hover
DeclarationInternet Explorer 6
Styling attempted?Styling correct?Guillotine bug?
{ background: }InapplicableYes
{ background: #ccc; }YesYesYes
{ background: url("../cccccc-300x200"); }YesYesYes
{ background: url("../cccccc-1x1") repeat; }YesYesYes
{ background: inherit; }YesNo
{ background-color: }InapplicableNo
{ background-color: #ccc; }YesYesYes
{ background-color: transparent; }UnsureYes
{ background-color: inherit; }YesNo
{ background-image: }InapplicableNo
{ background-image: url("../cccccc-300x200"); }NoNo
{ background-image: none; }YesNo
{ background-image: inherit; }YesNo
{ background-position: }InapplicableYes
{ background-position: center; }InapplicableYes
{ background-position: inherit; }InapplicableNo
{ background-repeat }No
{ background-repeat: repeat; }No
{ background-repeat: no-repeat; }No
{ color: }InapplicableNo
{ color: #ccc; }YesYesNo
{ color: inherit; }NoNo
{ display: }InapplicableNo
{ display: inline; }YesYes
{ display: block; }YesUnsureYes
{ display: list-item; }YesNoYes
{ display: run-in; }NoNo
{ display: compact; }NoNo
{ display: none; }YesNoYes
{ display: inherit; }UnsureNoNo
{ font: }InapplicableNo
{ font: 1em serif; }YesYesYes
{ font: 1em sans-serif; }YesYesYes
{ font: 1em cursive; }YesUnsureYes
{ font: 1em fantasy; }YesUnsureYes
{ font: 1em monospace; }YesYesYes
{ font: medium serif; }YesYesYes
{ font: medium sans-serif; }YesYesYes
{ font: medium cursive; }YesUnsureYes
{ font: medium fantasy; }YesUnsureYes
{ font: medium monospace; }YesYesYes
{ font: inherit; }YesNo
{ font-family: }InapplicableNo
{ font-family: serif; }YesYesYes
{ font-family: sans-serif; }YesYesYes
{ font-family: cursive; }YesUnsureYes
{ font-family: fantasy; }YesUnsureYes
{ font-family: monospace; }YesYesYes
{ font-family: inherit; }YesNo
{ font-size: }InapplicableNo
{ font-size: xx-small; }YesYesYes
{ font-size: x-small; }YesYesYes
{ font-size: small; }YesYesYes
{ font-size: medium; }YesNo
{ font-size: large; }YesYesYes
{ font-size: x-large; }YesYesYes
{ font-size: xx-large; }YesYesYes
{ font-size: smaller; }YesYesYes
{ font-size: larger}YesYesYes
{ font-size: 2em; }YesYesYes
{ font-size: 4ex; }YesYesYes
{ font-size: 30px; }YesYesYes
{ font-size: 200%; }YesYesYes
{ font-size: inherit; }YesNo
{ font-stretch: }InapplicableNo
{ font-stretch: normal; }YesNo
{ font-stretch: wider; }NoNo
{ font-stretch: narrower; }NoNo
{ font-stretch: ultra-condensed; }NoNo
{ font-stretch: extra-condensed; }NoNo
{ font-stretch: condensed; }NoNo
{ font-stretch: semi-condensed; }NoNo
{ font-stretch: semi-expanded; }NoNo
{ font-stretch: expanded; }NoNo
{ font-stretch: extra-expanded; }NoNo
{ font-stretch: ultra-expanded; }NoNo
{ font-stretch: inherit; }YesNo
{ font-style: }InapplicableNo
{ font-style: normal; }YesNo
{ font-style: italic; }YesYesYes
{ font-style: oblique; }UnsureYes
{ font-style: inherit; }YesNo
{ font-variant: }InapplicableNo
{ font-variant: normal; }YesNo
{ font-variant: small-caps; }PartlyPartlyNo
{ font-variant: inherit; }YesNo
{ font-weight: }InapplicableNo
{ font-weight: normal; }YesNo
{ font-weight: bold; }YesYesYes
{ font-weight: bolder; }YesYesYes
{ font-weight: lighter; }UnsureUnsureYes
{ font-weight: 100; }UnsureYesYes
{ font-weight: 200; }UnsureYesYes
{ font-weight: 300; }UnsureYesYes
{ font-weight: 400; }YesNo
{ font-weight: 500; }UnsureYesYes
{ font-weight: 600; }YesYesYes
{ font-weight: 700; }YesYesYes
{ font-weight: 800; }YesYesYes
{ font-weight: 900; }YesYesYes
{ font-weight: inherit; }YesNo
{ letter-spacing: }InapplicableNo
{ letter-spacing: normal; }YesNo
{ letter-spacing: 1em; }YesNoYes
{ letter-spacing: inherit; }YesNo
{ text-decoration: }InapplicableNo
{ text-decoration: none; }YesNo
{ text-decoration: underline; }YesYesNo
{ text-decoration: overline; }YesYesNo
{ text-decoration: line-through; }YesYesNo
{ text-decoration: blink; }YesNoNo
{ text-decoration: inherit; }NoNo
{ text-shadow: }InapplicableNo
{ text-shadow: none; }YesNo
{ text-shadow: 1em 1em; }NoNo
{ text-shadow: inherit; }YesNo
{ text-transform: }InapplicableNo
{ text-transform: capitalize; }YesYesYes
{ text-transform: uppercase; }YesYesYes
{ text-transform: lowercase; }YesYesYes
{ text-transform: none; }YesYes
{ text-transform: inherit; }YesNo
{ visibility: }InapplicableNo
{ visibility: visible; }YesYes
{ visibility: hidden; }YesNoYes
{ visibility: collapse; }NoNo
{ visibility: inherit; }YesYes
{ word-spacing: }InapplicableNo
{ word-spacing: normal; }YesNo
{ word-spacing: 2em; }YesYesYes
{ word-spacing: inherit; }YesNo
Multiple declarations set on a:hover
DeclarationsInternet Explorer 6
Styling attempted?Styling correct?Guillotine bug?
{ background-image: url("../cccccc-300x200"); background-position: center; }YesInapplicableYes
{ background-image: url("../cccccc-1x1"); background-repeat: repeat; }NoNo
{ background-image: url("../cccccc-1x1"); background-repeat: repeat; background-position: center; }YesInapplicableYes
CSStests@flexHTML.net