blob: 404edb239f98e9784ea1866c9c03c8a6d0a557ee [file] [log] [blame]
description("This test ensures that objects RGBColor objects return the correct values.");
var element = document.createElement('div');
document.documentElement.appendChild(element);
element.style.color = "rgb(10, 20, 30)";
shouldBe("window.getComputedStyle(element, '').getPropertyCSSValue('color').getRGBColorValue().red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "10");
shouldBe("window.getComputedStyle(element, '').getPropertyCSSValue('color').getRGBColorValue().green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "20");
shouldBe("window.getComputedStyle(element, '').getPropertyCSSValue('color').getRGBColorValue().blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER)", "30");