CSSJSON icon indicating copy to clipboard operation
CSSJSON copied to clipboard

data uri parsed oddly

Open tomgenoni opened this issue 10 years ago • 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.

tomgenoni avatar Mar 02 '14 07:03 tomgenoni