1description( 2'This test checks that access to CSS properties via JavaScript properties on DOM elements is case sensitive.' 3); 4 5var element = document.createElement('a'); 6element.style.zIndex = 1; 7 8debug('normal cases'); 9debug(''); 10 11shouldBe("element.style.zIndex", "'1'"); 12shouldBeUndefined("element.style.ZIndex"); 13 14debug(''); 15debug('"css" prefix'); 16debug(''); 17 18shouldBe("element.style.cssZIndex", "'1'"); 19shouldBe("element.style.CssZIndex", "'1'"); 20shouldBeUndefined("element.style.CsszIndex"); 21shouldBeUndefined("element.style.csszIndex"); 22 23debug(''); 24debug('"pixel" prefix'); 25debug(''); 26 27shouldBe("element.style.pixelZIndex", "1"); 28shouldBe("element.style.PixelZIndex", "1"); 29shouldBeUndefined("element.style.pixelzIndex"); 30shouldBeUndefined("element.style.PixelzIndex"); 31 32debug(''); 33debug('"pos" prefix'); 34debug(''); 35 36shouldBe("element.style.posZIndex", "1"); 37shouldBe("element.style.PosZIndex", "1"); 38shouldBeUndefined("element.style.poszIndex"); 39shouldBeUndefined("element.style.PoszIndex"); 40 41var successfullyParsed = true; 42