v0.1 for XNA 4.0 try 2

This commit is contained in:
headhunter45_cp
2010-09-26 21:30:57 +00:00
parent 4369d2296a
commit b996ebe2db
2 changed files with 2 additions and 2 deletions

View File

@@ -188,7 +188,7 @@ namespace PlanB.Html.Nodes
if (key == "color")
{
Color color = ColorHelper.FromCss(value);
//TODO Update this to support rgba maybe
if (color.A == 0xff)
{
value = String.Format("rgb({0}, {1}, {2})", color.R, color.G, color.B);

View File

@@ -282,7 +282,7 @@ namespace TestProject1
KeyValuePair<string, string> spanColorStyle = spanColorStyles.First();
Assert.AreEqual<string>(spanColorStyle.Value, "rgb(0, 0, 0)");
Assert.AreEqual<string>("rgb(0, 0, 0)", spanColorStyle.Value);
//Assert.AreEqual<string>(spanColorStyle.Value, "black");
/**/