Modified: trunk/LayoutTests/fast/dom/attribute-legacy-colors-expected.txt (91216 => 91217)
--- trunk/LayoutTests/fast/dom/attribute-legacy-colors-expected.txt 2011-07-18 22:42:57 UTC (rev 91216)
+++ trunk/LayoutTests/fast/dom/attribute-legacy-colors-expected.txt 2011-07-18 22:49:38 UTC (rev 91217)
@@ -22,6 +22,10 @@
PASS document.body.bgColor='ffff';getComputedStyle(document.body).backgroundColor; is 'rgb(255, 0, 255)'
PASS document.body.bgColor='ff';getComputedStyle(document.body).backgroundColor; is 'rgb(240, 15, 0)'
PASS document.body.bgColor='rgb(255, 0, 0)';getComputedStyle(document.body).backgroundColor; is 'rgb(0, 85, 0)'
+PASS document.body.bgColor='rgba(255,255,255,50%)';getComputedStyle(document.body).backgroundColor; is 'rgb(0, 80, 85)'
+PASS document.body.bgColor='hsl(180,100%,50%)';getComputedStyle(document.body).backgroundColor; is 'rgb(0, 1, 80)'
+PASS document.body.bgColor='hsla(180,100%,50%,50%)';getComputedStyle(document.body).backgroundColor; is 'rgb(0, 16, 5)'
+PASS document.body.bgColor='currentColor';getComputedStyle(document.body).backgroundColor; is 'rgb(192, 224, 0)'
PASS document.body.bgColor='550000001155000000115500000011';getComputedStyle(document.body).backgroundColor; is 'rgb(17, 17, 17)'
PASS document.body.bgColor='550000000155000000015500000001';getComputedStyle(document.body).backgroundColor; is 'rgb(1, 1, 1)'
PASS document.body.bgColor='550000000055000000005500000000';getComputedStyle(document.body).backgroundColor; is 'rgb(0, 0, 0)'
Modified: trunk/LayoutTests/fast/dom/script-tests/attribute-legacy-colors.js (91216 => 91217)
--- trunk/LayoutTests/fast/dom/script-tests/attribute-legacy-colors.js 2011-07-18 22:42:57 UTC (rev 91216)
+++ trunk/LayoutTests/fast/dom/script-tests/attribute-legacy-colors.js 2011-07-18 22:49:38 UTC (rev 91217)
@@ -21,6 +21,10 @@
{'test':'ffff', 'expected':[255, 0, 255]},
{'test':'ff', 'expected':[240, 15, 0]},
{'test':'rgb(255, 0, 0)', 'expected':[0, 85, 0]},
+ {'test':'rgba(255,255,255,50%)', 'expected':[0,80,85]},
+ {'test':'hsl(180,100%,50%)', 'expected':[0,1,80]},
+ {'test':'hsla(180,100%,50%,50%)', 'expected':[0,16,5]},
+ {'test':'currentColor', 'expected':[192,224,0]},
{'test':'550000001155000000115500000011', 'expected':[17, 17, 17]},
{'test':'550000000155000000015500000001', 'expected':[1, 1, 1]},
{'test':'550000000055000000005500000000', 'expected':[0, 0, 0]},