Bases: jasy.parse.AbstractNode.AbstractNode
Top-down expression parser for stylestyles.
Supports e.g.:
}
}
}
Supports e.g.:
}
}
}
}
}
}
Supports e.g.:
}
}
An expression in parens. Sometimes to force priority of math operations etc.
Parses all CSS properties e.g.
Supports e.g.:
font-size: 20px;
}
}
color: black; background: white;
}
}
}
CSS selector parser e.g.
h1 .infobox #header h1::after h2:first-child
Parses the toplevel and rule bodies.
Top-down expression parser for rule values in stylestyles.
Scans the given tree and attaches variable data instances (core/ScopeData.py) to every scope (aka function). This data is being stored independently from the real tree so that if you modifiy the tree the data is not automatically updated. This means that every time you modify the tree heavily, it might make sense to re-execute this method to bring it in sync to the current tree structure.