55703e8587
And revert "Temprarily remove the "rect" SVG DOM element."
This reverts commit fcea9f0bd6
.
The lexer now uses a variable to distinguish of being inside a CSS
property declaration or outside. If inside, don't mark token as css_dom
(e.g. 'rect'). This circumvents the ambiguity between the "rect" SVG DOM
element and the "clip()" CSS function. CSS functions only occur within
property declarations.
For that, ';' had to be promoted from a literal to an ordinar token.
19 lines
567 B
CSS
19 lines
567 B
CSS
svg{color:red;}
|
|
circle{stroke:#006600;fill:#00cc00;}
|
|
circle .green{stroke:#006600;stroke-width:9;fill:#00cc00;}
|
|
rect{fill:blue;fill-opacity:0.1;stroke:green;opacity:0.5;}
|
|
ellipse{fill:yellow;}
|
|
line{stroke:red;}
|
|
path{stroke:blue;}
|
|
polygon{fill:lime;fill-rule:nonzero;}
|
|
polygon{fill:lime;fill-rule:evenodd;}
|
|
polyline{fill:none;}
|
|
.node text{font:12px sans-serif;}
|
|
tref{font-weight:bold;}
|
|
text tref{font-weight:bold;}
|
|
tspan{font-weight:bold;}
|
|
text tspan{font-weight:bold;}
|
|
textPath{font-weight:bold;}
|
|
text textPath{font-weight:bold;}
|
|
svg text textPath{font-weight:bold;}
|