blob: 1f677552ea5bed89cb4f12061f4b54358c886b9c [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");
successfullyParsed = true;