aramk/CSSJSON

data uri parsed oddly

tomgenoni opened this issue · 0 comments

body {background: #aaa url('data:image/png;base64,iVBORw0') no-repeat 10px 12px;}

is parsed as:

{
  "children": {
    "body": {
      "0": "base64,iVBORw0') no-repeat 10px 12px;",
      "children": {},
      "attributes": {
        "background": "#aaa url('data:image/png"
      }
    }
  },
  "attributes": {}
}

Looks like it chokes on the semicolon after png.