### ----------------------------------------------------
### -- CSS::Writer
### -- Licenses: Artistic-2.0
### -- Authors: David Warring
### -- File: t/write-ast.json
### ----------------------------------------------------
{ "ast" : { "expr" : [ { "ident" : "_aBc0" }, { "ident" : "0abc" }, { "ident" : "-x-\"-'-\\" }, {"ident" : "--y" }, {"ident" : "temp@15°C" } ] }, "css" : "_aBc0 0abc -x-\\\"-\\'-\\\\ -\\-y temp\\@15\\B0 C" }
{ "ast" : { "expr" : [ { "string" : "_aBc0" }, { "string" : "0abc" }, { "string" : "-x-\"-'-\\" }, {"string" : "--y" }, {"string" : "temp@15°C" } ] }, "css" : "'_aBc0' '0abc' '-x-\"-\\'-\\\\' '--y' 'temp@15\\B0 C'" }
{  "ast" : { "rgb" : [ { "num" : 0 }, { "num" : 133 }, { "num" : 255 } ] }, "css" : "rgb(0, 133, 255)" }
{  "ast" : { "rgba" : [ { "num" : 255 }, { "num" : 0 }, { "num" : 0 }, { "num" : 1.0 } ] }, "css" : "rgb(255, 0, 0)", "color-names": "red" }
{  "ast" : { "rgba" : [ { "num" : 255 }, { "num" : 0 }, { "num" : 0 }, { "num" : 0.5 } ] }, "css" : "rgba(255, 0, 0, 0.5)", "color-names" : "rgba(255, 0, 0, 0.5)" }
{  "ast" : { "rgba" : [ { "num" : 255 }, { "num" : 0 }, { "num" : 0 }, { "num" : 0 } ] }, "css" : "rgba(255, 0, 0, 0)", "color-names" : "transparent" }
{  "ast" : { "hsla" : [ { "num" : 120 }, { "percent" : 20.0 }, { "percent" : 30.0 }, { "num" : 0.7 } ] }, "css" : "hsla(120, 20%, 30%, 0.7)", "color-names" : "hsla(120, 20%, 30%, 0.7)" }
{  "ast" : { "hsla" : [ { "num" : 120 }, { "percent" : 20.0 }, { "percent" : 30.0 }, { "num" : 0.0 } ] }, "css" : "hsla(120, 20%, 30%, 0)", "color-names" : "transparent" }
{  "ast" : { "expr" : [ { "ident" : "Blue"}, { "rgb" : [ { "num" : 256 }, { "num" : 165 }, { "num" : -1 } ] }, { "rgb" : [ { "percent" : 10 }, { "percent" : 20 }, { "percent" : 30 } ] }, { "rgb" : [ { "num" : 119 }, { "num" : 170 }, { "num" : 255 } ] } ] }, "css" : "Blue rgb(256, 165, -1) rgb(10%, 20%, 30%) rgb(119, 170, 255)", "color-masks" : "Blue #FFA500 #19334C #7AF", "color-names" : "Blue orange rgb(10%, 20%, 30%) rgb(119, 170, 255)", "color-values" : "rgb(0, 0, 255) rgb(256, 165, -1) rgb(10%, 20%, 30%) rgb(119, 170, 255)" }
// gray vs grey
{  "ast" : { "expr" : [ { "ident" : "lightgray"}, { "ident" : "lightgrey" }, { "ident" : "grey" } ] }, "css" : "lightgray lightgrey grey", "color-values" : "rgb(211, 211, 211) rgb(211, 211, 211) rgb(128, 128, 128)" }
{ "ast" : { "property" : { "ident" : "line-height", "expr" : [ { "px" : 1.1 } ], "comment": "/* very */", "prio" : "important" } }, "css" : "line-height: 1.1px !important; /* very */" }
{ "ast" : { "func" : { "ident" : "foo", "args" : [ { "ident" : "a" }, { "comment": "wtf"}, { "ident" : "b" } ] } }, "css" : "foo(a, b /* wtf */)" }
{ "ast" : { "qname" : { "element-name" : "div" } }, "css" : "div" }
{ "ast" : { "qname" : { "ns-prefix" : "foo", "element-name" : "h1" } }, "css" : "foo|h1" }
{ "ast" : { "qname" : { "ns-prefix" : "*", "element-name" : "h1" } }, "css" : "*|h1" }
{ "ast" : { "qname" : { "ns-prefix" : "*", "element-name" : "*" } }, "css" : "*|*" }
{ "ast" : { "qname" : { "ns-prefix" : "", "element-name" : "h1" } }, "css" : "|h1" }
{ "ast" : { "at-keyw" : "top-left-center" }, "css" : "@top-left-center" }
{ "ast" : { "property" : { "ident" : "font", "expr" : [ { "expr:font-style" : [ { "keyw" : "normal" }] }, { "expr:font-variant" : [{ "keyw" : "small-caps" } ]  }, { "expr:font-size" : [ { "percent" : 120 } ] }, { "expr:line-height" : [ { "percent" : 120 } ] }, { "comment" : "font-family"}, { "expr:font-family" : [ { "keyw" : "fantasy" } ] } ] } }, "css" : "font: normal small-caps 120% 120% /* font-family */ fantasy;" }
{ "ast" : { "property" : { "ident" : "font", "expr" : [ { "expr:background-image" : [ { "url" : "chess.png" } ] }, { "expr:background-color" : [ { "rgb" : [ { "num" : 128 }, { "num" : 128 }, { "num" : 128 } ] } ] } ] } }, "css" : "font: url('chess.png') rgb(128, 128, 128);", "color-masks" : "font: url('chess.png') #808080;", "color-names" : "font: url('chess.png') gray;" }
{ "ast" : { "at-rule" : { "at-keyw" : "media", "media-list" : [ { "media-query" : [ { "ident" : "all" }, { "keyw" : "and" }, { "property" : { "ident" : "color" } } ] } ], "rule-list" : [  ] } }, "css" : "@media all and (color) {\n}" }
{ "ast" : { "at-rule": { "at-keyw": "import", "url": "file:///etc/passwd" } }, "css" : "@import url('file:///etc/passwd');" }
{ "ast" : { "at-rule": { "at-keyw": "import", "string": "/etc/passwd" } }, "css" : "@import '/etc/passwd';" }


