diff options
Diffstat (limited to '')
-rw-r--r-- | dom/base/test/test_html_colors_quirks.html | 711 |
1 files changed, 711 insertions, 0 deletions
diff --git a/dom/base/test/test_html_colors_quirks.html b/dom/base/test/test_html_colors_quirks.html new file mode 100644 index 0000000000..128c2f8b99 --- /dev/null +++ b/dom/base/test/test_html_colors_quirks.html @@ -0,0 +1,711 @@ +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=121738 +--> +<head> + <meta charset="UTF-8"> + <title>Test for Bug 121738</title> + <script src="/tests/SimpleTest/SimpleTest.js"></script> + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> +</head> +<body> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=121738">Mozilla Bug 121738</a> +<table id="table0"></table> +<table id="table1"></table> +<pre id="test"> +<script type="application/javascript"> + +/** Test for Bug 121738 **/ + +String.prototype.toAsciiLowerCase = function () { + var output = ""; + for (var i = 0, len = this.length; i < len; ++i) { + if (this.charCodeAt(i) >= 0x41 && this.charCodeAt(i) <= 0x5A) { + output += String.fromCharCode(this.charCodeAt(i) + 0x20) + } else { + output += this.charAt(i); + } + } + return output; +} + +var tests = [ +"#135", +" #135", +"#135 ", +" #135 ", +"# 135", +"# 135", +"#123456", +" #123456", +"#123456 ", +" #123456 ", +"# 123456", +"# 123456", +"aliceblue", +"ALICEBLUE", +"alıceblue", +"alİceblue", +" aliceblue", +"aliceblue ", +" aliceblue ", +"antiquewhite", +"aqua", +"aquamarine", +"azure", +"beige", +"bisque", +"black", +"blanchedalmond", +"blue", +"blueviolet", +"brown", +"burlywood", +"cadetblue", +"chartreuse", +"chocolate", +"coral", +"cornflowerblue", +"cornsilk", +"crimson", +"cyan", +"darkblue", +"darkcyan", +"darkgoldenrod", +"darkgray", +"darkgreen", +"darkgrey", +"darkkhaki", +"darkmagenta", +"darkolivegreen", +"darkorange", +"darkorchid", +"darkred", +"darksalmon", +"darkseagreen", +"darkslateblue", +"darkslategray", +"darkslategrey", +"darkturquoise", +"darkviolet", +"deeppink", +"deepskyblue", +"dimgray", +"dimgrey", +"dodgerblue", +"firebrick", +"floralwhite", +"forestgreen", +"fuchsia", +"gainsboro", +"ghostwhite", +"gold", +"goldenrod", +"gray", +"green", +"greenyellow", +"grey", +"honeydew", +"hotpink", +"indianred", +"indigo", +"ivory", +"khaki", +"lavender", +"lavenderblush", +"lawngreen", +"lemonchiffon", +"lightblue", +"lightcoral", +"lightcyan", +"lightgoldenrodyellow", +"lightgray", +"lightgreen", +"lightgrey", +"lightpink", +"lightsalmon", +"lightseagreen", +"lightskyblue", +"lightslategray", +"lightslategrey", +"lightsteelblue", +"lightyellow", +"lime", +"limegreen", +"linen", +"magenta", +"maroon", +"mediumaquamarine", +"mediumblue", +"mediumorchid", +"mediumpurple", +"mediumseagreen", +"mediumslateblue", +"mediumspringgreen", +"mediumturquoise", +"mediumvioletred", +"midnightblue", +"mintcream", +"mistyrose", +"moccasin", +"navajowhite", +"navy", +"oldlace", +"olive", +"olivedrab", +"orange", +"orangered", +"orchid", +"palegoldenrod", +"palegreen", +"paleturquoise", +"palevioletred", +"papayawhip", +"peachpuff", +"peru", +"pink", +"plum", +"powderblue", +"purple", +"red", +"rosybrown", +"royalblue", +"saddlebrown", +"salmon", +"sandybrown", +"seagreen", +"seashell", +"sienna", +"silver", +"skyblue", +"slateblue", +"slategray", +"slategrey", +"snow", +"springgreen", +"steelblue", +"tan", +"teal", +"thistle", +"tomato", +"turquoise", +"violet", +"wheat", +"white", +"whitesmoke", +"yellow", +"yellowgreen", +"transparent", +"TRANSPARENT", +"", +"inherit", +"INHERIT", +"KQ@m?-ldxNK{zH+(FL_owz>YNH^]", +"aj9c)r+J&3)0E,- Lzv6K6nT@6?I}BY^\\g", +"Cf}qJN|3D>m:^[7B*fhu>lC[B3\"T_-F", +"h<s1pMd-8H[,\\caWH1oW3%M", +"z{y]VZj)%)ZV<OTbO9\\Nbc|YL}4BI<DlUBk$EV`EbN}x/@SDN0(", +"PSX2Ol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J", +"eV\\q5Q4o@Y*,IRMcnpqj5>Id\\yBe?pKH3uF&c<c}:E9[uaH$ 8dXCmI+!C'q@PkE<NVRq~GRW<tfyt/i@%dwI&rL", +"UGzLF+o3)Ezs=nMxqd^\"=q.Ik}Tk2I`X)R8]Zmy/WQp,|]TdbP)5 J+#Hm6SmWtQ+h?.MQ1W#oyp\\F,'JL>rLtjiHOA", +"&joOSw7XZVvSt4ZCT*:aq:3ns!v|r);~7gN8'_D", +"Y<q|Mhn5Nrcb+dR=10pQF5]r@/*7P`79w/htSm2,C~1&sUW{N@v:t9d;HPG&xrI\"YD;V9Y$'g,W'J=GV3,YK", +"Gx&#{;]l/?[{SyX`kTeo", +"30PU7@<'58.hRWsJTa9L.hVQ8}7=$}ih4|$Y*9z3[aooT!]}+>b{1JH^.jjEU{,dAXSCbtEh6", +"%2~x8=A!RW@8N/`hQz`)gl}1DOU9{>Ie'L> 4e]m;kt =isEQ(\\TeI7hWgK-K! p^K'\":3;dxTLO", +"\\ ):{Woay[4", +"\\{Ih&}*8^x6@`V@DZB`rSuhYm4i@TW^t9Hx[^`IVumjXc1vA\"~wt8^Jf:US6Z\\xaS&", +"lo $6<EP|=gAEpd\\M6YDg\"*0m", +/* +"ActiveBorder", +"ActiveCaption", +"AppWorkspace", +"Background", +"ButtonFace", +"ButtonHighlight", +"ButtonShadow", +"ButtonText", +"CaptionText", +"GrayText", +"Highlight", +"HighlightText", +"InactiveBorder", +"InactiveCaption", +"InactiveCaptionText", +"InfoBackground", +"InfoText", +"Menu", +"MenuText", +"Scrollbar", +"ThreeDDarkShadow", +"ThreeDFace", +"ThreeDHighlight", +"ThreeDLightShadow", +"ThreeDShadow", +"Window", +"WindowFrame", +"WindowText", +*/ +"currentColor", +"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f", +"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f", +"#000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f", +"#0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f", +"#", +"#1", +"#12", +"#123", +"#1234", +"#12x", +"abc", +"123", +"#0ab0cd0ef", +"#0ab0cd0e", +"#0ab0cd0", +"#0ab0cdaef", +"#0ab0cdae", +"#0ab0cda" +]; + +var references = [ +"#113355", +"#001350", +"#135000", +"#001350", +"#013500", +"#000135", +"#123456", +"#002356", +"#124500", +"#002356", +"#013460", +"#001245", +"#f0f8ff", +"#f0f8ff", +"#a0ce00", +"#a0ce00", +"#0ace0e", +"#a0ebe0", +"#00cee0", +"#faebd7", +"#00ffff", +"#7fffd4", +"#f0ffff", +"#f5f5dc", +"#ffe4c4", +"#000000", +"#ffebcd", +"#0000ff", +"#8a2be2", +"#a52a2a", +"#deb887", +"#5f9ea0", +"#7fff00", +"#d2691e", +"#ff7f50", +"#6495ed", +"#fff8dc", +"#dc143c", +"#00ffff", +"#00008b", +"#008b8b", +"#b8860b", +"#a9a9a9", +"#006400", +"#a9a9a9", +"#bdb76b", +"#8b008b", +"#556b2f", +"#ff8c00", +"#9932cc", +"#8b0000", +"#e9967a", +"#8fbc8f", +"#483d8b", +"#2f4f4f", +"#2f4f4f", +"#00ced1", +"#9400d3", +"#ff1493", +"#00bfff", +"#696969", +"#696969", +"#1e90ff", +"#b22222", +"#fffaf0", +"#228b22", +"#ff00ff", +"#dcdcdc", +"#f8f8ff", +"#ffd700", +"#daa520", +"#808080", +"#008000", +"#adff2f", +"#808080", +"#f0fff0", +"#ff69b4", +"#cd5c5c", +"#4b0082", +"#fffff0", +"#f0e68c", +"#e6e6fa", +"#fff0f5", +"#7cfc00", +"#fffacd", +"#add8e6", +"#f08080", +"#e0ffff", +"#fafad2", +"#d3d3d3", +"#90ee90", +"#d3d3d3", +"#ffb6c1", +"#ffa07a", +"#20b2aa", +"#87cefa", +"#778899", +"#778899", +"#b0c4de", +"#ffffe0", +"#00ff00", +"#32cd32", +"#faf0e6", +"#ff00ff", +"#800000", +"#66cdaa", +"#0000cd", +"#ba55d3", +"#9370db", +"#3cb371", +"#7b68ee", +"#00fa9a", +"#48d1cc", +"#c71585", +"#191970", +"#f5fffa", +"#ffe4e1", +"#ffe4b5", +"#ffdead", +"#000080", +"#fdf5e6", +"#808000", +"#6b8e23", +"#ffa500", +"#ff4500", +"#da70d6", +"#eee8aa", +"#98fb98", +"#afeeee", +"#db7093", +"#ffefd5", +"#ffdab9", +"#cd853f", +"#ffc0cb", +"#dda0dd", +"#b0e0e6", +"#800080", +"#ff0000", +"#bc8f8f", +"#4169e1", +"#8b4513", +"#fa8072", +"#f4a460", +"#2e8b57", +"#fff5ee", +"#a0522d", +"#c0c0c0", +"#87ceeb", +"#6a5acd", +"#708090", +"#708090", +"#fffafa", +"#00ff7f", +"#4682b4", +"#d2b48c", +"#008080", +"#d8bfd8", +"#ff6347", +"#40e0d0", +"#ee82ee", +"#f5deb3", +"#ffffff", +"#f5f5f5", +"#ffff00", +"#9acd32", +"transparent", +"transparent", +"transparent", +"#00e000", +"#00e000", +"#0df000", +"#0000b0", +"#007b30", +"#008001", +"#004b00", +"#002080", +"#099600", +"#0120e2", +"#f00630", +"#d00000", +"#200000", +"#0c00d0", +"#07900a", +"#db020b", +"#7000a0", +"#b00c02", +"#d6d000", +"#000000", +"#1d00f0", +"#000000", +"#a00000", +"#00b600", +"#007028", +"#00b0b9", +"#000000", +"#f00000", +"#b00005", +"#0ea000", +"#72000a", +"#ba0c00", +"#0fe000", +"#50000b", +"#000c44", +"#ae4202", +"#00005d", +"#0000af", +"#5d0041", +"#a00000", +"#c00000", +"#090000", +"#0209fe", +"#a00500", +"#c0100e", +"#7f0000", +"#600000", +"#d00d00", +"#0004d9", +"#c00000", +"#0500ff", +"#0000c3", +"#200000", +"#80f00d", +"#0c7000", +"#00c4d0", +"#a000a0", +"#00a000", +"#d0070f", +"#900600", +"#002090", +"#30ef00", +"#0000e0", +"#b000c0", +"#80c200", +"#0900e0", +"#0005e0", +"#800b00", +"#b0a000", +"#e00000", +"#000690", +"#d00000", +"#010020", +"#0000c0", +"#000060", +"#004000", +"#000000", +"#000da0", +"#000000", +"#00d000", +"#000fa0", +"#0c5000", +"#000030", +"#a0007b", +"#00cb05", +"#023000", +"#9bc000", +"#b000b0", +"#00e055", +"#000000", +"#0dc0d0", +"#20600a", +"#70a070", +"#f50000", +"#0000e0", +"#a900cb", +"#0000d0", +"#000a40", +"#d00060", +"#000ad0", +/* +"ActiveBorder", +"ActiveCaption", +"AppWorkspace", +"Background", +"ButtonFace", +"ButtonHighlight", +"ButtonShadow", +"ButtonText", +"CaptionText", +"GrayText", +"Highlight", +"HighlightText", +"InactiveBorder", +"InactiveCaption", +"InactiveCaptionText", +"InfoBackground", +"InfoText", +"Menu", +"MenuText", +"Scrollbar", +"ThreeDDarkShadow", +"ThreeDFace", +"ThreeDHighlight", +"ThreeDLightShadow", +"ThreeDShadow", +"Window", +"WindowFrame", +"WindowText", +*/ +"#c0e000", +"#0000f0", +"#000000", +"#0000f0", +"#000000", +"#000000", +"#010000", +"#010200", +"#112233", +"#123400", +"#010200", +"#0a0b0c", +"#010203", +"#abcdef", +"#abcde0", +"#abcd00", +"#0a0cae", +"#0a0cae", +"#0a0ca0" +]; + +var todos = { +" #135": true, +"#135 ": true, +" #135 ": true, +"# 135": true, +" #123456": true, +"#123456 ": true, +" #123456 ": true, +"# 123456": true, +" aliceblue": true, +"aliceblue ": true, +" aliceblue ": true, +"H3<MOq'81C#\\nUjQc xlsF@c2R<e);T~G]^N0_*M<j!jub~k,mgZ(.>GERhwS;kmmKC?1l} qQ&zcXK?g)S OmF^=E^TlTC)/": true, +" $4X": true, +"UGzLF+o3)Ezs=nMxqd^\"=q.Ik}Tk2I`X)R8]Zmy/WQp,|]TdbP)5 J+#Hm6SmWtQ+h?.MQ1W#oyp\\F,'JL>rLtjiHOA": true +}; + +var table0 = document.getElementById("table0"); +var table1 = document.getElementById("table1"); +var cs0 = document.defaultView.getComputedStyle(table0); +var cs1 = document.defaultView.getComputedStyle(table1); +var result; +var reference; +var log = ""; +var len = tests.length; +is(tests.length, references.length, "array length mismatch"); +for (var i = 0; i < len; ++i) { + table0.setAttribute("bgColor", tests[i]); + table1.style.backgroundColor = references[i]; + ((tests[i] in todos) ? todo_is : is)( + cs0.getPropertyValue("background-color"), + cs1.getPropertyValue("background-color"), + "html color '" + tests[i] + "' should match '" + references[i] + "'"); +} +</script> + +</script> +</pre> +</body> +</html> |