Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: LayoutTests/fast/css/named-colors.html

Issue 432773002: Add the named color `rebeccapurple` (#639) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/css/named-colors-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/named-colors.html
diff --git a/LayoutTests/fast/css/named-colors.html b/LayoutTests/fast/css/named-colors.html
index 55018cf34221fc5490592b7bb39ac550130a461e..2d4de735689292987acb284082c7c8caeb03fa0f 100644
--- a/LayoutTests/fast/css/named-colors.html
+++ b/LayoutTests/fast/css/named-colors.html
@@ -6,9 +6,9 @@
if (window.testRunner)
testRunner.dumpAsText();
-
- // Named colors and their rgb values as per the css3 specification.
- // http://www.w3.org/TR/css3-color/#svg-color
+
+ // Named colors and their rgb values as per the CSS Color specification.
+ // http://dev.w3.org/csswg/css-color/#named-colors
var colors = [
['aliceblue', '240,248,255'],
['antiquewhite', '250,235,215'],
@@ -129,6 +129,7 @@
['plum', '221,160,221'],
['powderblue', '176,224,230'],
['purple', '128,0,128'],
+ ['rebeccapurple', '102,51,153'],
['red', '255,0,0'],
['rosybrown', '188,143,143'],
['royalblue', '65,105,225'],
@@ -169,7 +170,7 @@
colorSpan.style.backgroundColor = colorName;
element.appendChild(colorSpan);
document.body.appendChild(element);
-
+
var value = document.defaultView.getComputedStyle(colorSpan, "").getPropertyValue("background-color");
var actual = value.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/).splice(1).join(',');
if (actual == expected) {
« no previous file with comments | « no previous file | LayoutTests/fast/css/named-colors-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698