mirror of https://github.com/sveltejs/svelte
parent
e88191f285
commit
39c35e11c1
@ -0,0 +1,12 @@
|
||||
<div>foo</div>
|
||||
|
||||
<style>
|
||||
div {
|
||||
color: red;
|
||||
}
|
||||
</style
|
||||
|
||||
|
||||
|
||||
|
||||
>
|
@ -0,0 +1,97 @@
|
||||
{
|
||||
"html": {
|
||||
"start": 0,
|
||||
"end": 14,
|
||||
"type": "Fragment",
|
||||
"children": [
|
||||
{
|
||||
"start": 0,
|
||||
"end": 14,
|
||||
"type": "Element",
|
||||
"name": "div",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"start": 5,
|
||||
"end": 8,
|
||||
"type": "Text",
|
||||
"raw": "foo",
|
||||
"data": "foo"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": 14,
|
||||
"end": 16,
|
||||
"type": "Text",
|
||||
"raw": "\n\n",
|
||||
"data": "\n\n"
|
||||
}
|
||||
]
|
||||
},
|
||||
"css": {
|
||||
"type": "Style",
|
||||
"start": 16,
|
||||
"end": 66,
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"type": "Rule",
|
||||
"selector": {
|
||||
"type": "SelectorList",
|
||||
"children": [
|
||||
{
|
||||
"type": "Selector",
|
||||
"children": [
|
||||
{
|
||||
"type": "TypeSelector",
|
||||
"name": "div",
|
||||
"start": 25,
|
||||
"end": 28
|
||||
}
|
||||
],
|
||||
"start": 25,
|
||||
"end": 28
|
||||
}
|
||||
],
|
||||
"start": 25,
|
||||
"end": 28
|
||||
},
|
||||
"block": {
|
||||
"type": "Block",
|
||||
"children": [
|
||||
{
|
||||
"type": "Declaration",
|
||||
"important": false,
|
||||
"property": "color",
|
||||
"value": {
|
||||
"type": "Value",
|
||||
"children": [
|
||||
{
|
||||
"type": "Identifier",
|
||||
"name": "red",
|
||||
"start": 40,
|
||||
"end": 43
|
||||
}
|
||||
],
|
||||
"start": 39,
|
||||
"end": 43
|
||||
},
|
||||
"start": 33,
|
||||
"end": 43
|
||||
}
|
||||
],
|
||||
"start": 29,
|
||||
"end": 47
|
||||
},
|
||||
"start": 25,
|
||||
"end": 47
|
||||
}
|
||||
],
|
||||
"content": {
|
||||
"start": 23,
|
||||
"end": 48,
|
||||
"styles": "\n\tdiv {\n\t\tcolor: red;\n\t}\n"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue