### ----------------------------------------------------
### -- CSS::Module
### -- Licenses: Artistic-2.0
### -- Authors: David Warring
### -- File: t/00basic.json
### ----------------------------------------------------
{ "declarations" : { "input" : "{unknown-prop: someval}", "warnings" : "dropping unknown property: unknown-prop", "ast" : { "declarations" : [  ] }, "CSS3(lax)" : { "warnings" : [  ], "ast" : { "declarations" : [ { "property" : { "expr" : [ { "ident" : "someval" } ], "ident" : "unknown-prop" } } ] } } } }
{ "declarations" : { "input" : "{unknown-prop: unknown-func()}", "warnings" : [ "ignoring function: unknown-func", "dropping declaration: unknown-prop" ], "ast" : { "declarations" : [  ] }, "CSS1" : { "warnings" : [ "dropping term: unknown-func()", "dropping declaration: unknown-prop" ] }, "CSS3(lax)" : { "warnings" : [  ], "ast" : { "declarations" : [ { "property" : { "expr" : [ { "func" : { "ident" : "unknown-func" } } ], "ident" : "unknown-prop" } } ] } } } }
{ "declarations" : { "input" : "{ @guff {color:red} }", "warnings" : "dropping unknown property: @guff", "CSS1" : { "warnings" : "dropping term: @guff {color:red}" }, "ast" : { "declarations" : [  ] }, "CSS3(lax)" : { "warnings" : [  ], "ast" : { "declarations" : [ { "at-rule" : { "declarations" : [ { "property" : { "ident" : "color", "expr" : [ { "rgb" : [ { "num" : 255 }, { "num" : 0 }, { "num" : 0 } ] } ] } } ], "at-keyw" : "guff" } } ] } } } }
{ "declarations" : { "input" : "{background-attachment: crud}", "CSS1" : { "warnings" : [ "usage background-attachment: scroll | fixed" ] }, "CSS2.1" : { "warnings" : [ "usage background-attachment: scroll | fixed | inherit" ] }, "warnings" : [ "usage background-attachment: scroll | fixed | inherit | initial" ], "ast" : { "declarations" : [  ] } } }
{ "declarations" : { "input" : "{background-attachment: FiXed}", "ast" : { "declarations" : [ { "property" : { "ident" : "background-attachment", "expr" : [ { "keyw" : "fixed" } ] } } ] } } }
{ "declarations" : { "input" : "{font-family: \"unclosed-string}", "ast" : { "declarations" : [  ] }, "warnings" : [ "usage font-family: [ <generic-family> | <family-name> ]# | inherit | initial", "no closing '}'" ], "CSS1" : { "warnings" : [ "usage font-family: [ <generic-family> | <family-name> ]#", "no closing '}'" ] }, "CSS2.1" : { "warnings" : [ "usage font-family: [ <generic-family> | <family-name> ]# | inherit", "no closing '}'" ] } } }
{ "declarations" : { "input" : "{/*aa*/COLoR/*bb*/:<!--cc-->BLUE /*dd*/;}", "ast" : { "declarations" : [ { "property" : { "ident" : "color", "expr" : [ { "rgb" : [ { "num" : 0 }, { "num" : 0 }, { "num" : 255 } ] } ] } } ] } } }
{ "declarations" : { "input" : "{margin: 2em 3em}", "ast" : { "declarations" : [ { "property" : { "ident" : "margin", "expr" : [ { "em" : 2 }, { "em" : 3 } ] } } ] } } }
{ "declarations" : { "input" : "{background-attachment: fixed !Important;}", "ast" : { "declarations" : [ { "property" : { "ident" : "background-attachment", "expr" : [ { "keyw" : "fixed" } ], "prio" : "important" } } ] } } }
{ "simple-selector" : { "input" : "H1:active", "ast" : { "simple-selector" : [ { "qname" : { "element-name" : "h1" } }, { "pseudo-class" : "active" } ] } } }
{ "simple-selector" : { "input" : "h1:eq(0)", "ast" : { "simple-selector" : [ { "qname" : { "element-name" : "h1" } } ] }, "warnings" : [ "ignoring function: eq" ], "CSS1" : { "warnings" : [  ], "parse" : "h1:eq", "ast" : { "simple-selector" : [ { "qname" : { "element-name" : "h1" } }, { "pseudo-class" : "eq" } ] } }, "CSS3(lax)" : { "warnings" : [  ], "ast" : { "simple-selector" : [ { "qname" : { "element-name" : "h1" } }, { "pseudo-func" : { "ident" : "eq", "expr" : [ { "num" : 0 } ] } } ] } } } }
{ "simple-selector" : { "input" : "h1[id$=ess]", "CSS1" : { "parse" : "h1", "ast" : { "simple-selector" : [ { "qname" : { "element-name" : "h1" } } ] } }, "CSS2.1" : { "parse" : "h1", "ast" : { "simple-selector" : [ { "qname" : { "element-name" : "h1" } } ] } }, "ast" : { "simple-selector" : [ { "qname" : { "element-name" : "h1" } }, { "attrib" : [ { "ident" : "id" }, { "op" : "$=" }, { "ident" : "ess" } ] } ] } } }


