OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../resources/testharness.js"></script> | |
3 <script src="../../resources/testharnessreport.js"></script> | |
4 <script> | |
5 setup(function() { | |
6 window.ctx = document.createElement('canvas').getContext('2d'); | |
7 }); | |
8 | |
9 test(function() { | |
10 ctx.fillStyle = "#008000"; | |
11 ctx.fillStyle = "800000"; | |
12 assert_equals(ctx.fillStyle, "#008000"); | |
13 }, 'fillStyle should not accept quirks mode hex colors.'); | |
14 </script> | |
OLD | NEW |