v0.1 for XNA 4.0 try 2
This commit is contained in:
@@ -188,7 +188,7 @@ namespace PlanB.Html.Nodes
|
|||||||
if (key == "color")
|
if (key == "color")
|
||||||
{
|
{
|
||||||
Color color = ColorHelper.FromCss(value);
|
Color color = ColorHelper.FromCss(value);
|
||||||
//TODO Update this to support rgba maybe
|
|
||||||
if (color.A == 0xff)
|
if (color.A == 0xff)
|
||||||
{
|
{
|
||||||
value = String.Format("rgb({0}, {1}, {2})", color.R, color.G, color.B);
|
value = String.Format("rgb({0}, {1}, {2})", color.R, color.G, color.B);
|
||||||
|
|||||||
@@ -282,7 +282,7 @@ namespace TestProject1
|
|||||||
|
|
||||||
KeyValuePair<string, string> spanColorStyle = spanColorStyles.First();
|
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");
|
//Assert.AreEqual<string>(spanColorStyle.Value, "black");
|
||||||
/**/
|
/**/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user