Class Syntax::CSS21
In: lib/syntax/lang/css21.rb
Parent: Tokenizer

Methods

setup   step  

Constants

CSS21_PROPERTIES = Set.new %w{font-family font-style font-variant font-weight font-size font background-color background-image background-repeat background-attachment background-position color background word-spacing letter-spacing border-top-width border-right-width border-left-width border-bottom-width border-width list-style-type list-style-image list-style-position text-decoration vertical-align text-transform text-align text-indent line-height margin-top margin-right margin-bottom margin-left margin padding-top padding-right padding-bottom padding-left padding border-top border-right border-bottom border-left border width height float clear display list-style white-space border-style border-color azimuth border-bottom-color border-bottom-style border-collapse border-left-color border-left-style border-right-color border-right-style border-top-color border-top-style caption-side cell-spacing clip column-span content cue cue-after cue-before cursor direction elevation font-size-adjust marks max-height max-width min-height min-width orphans overflow page-break-after page-break-before pause pause-after pause-before pitch pitch-range play-during position richness right row-span size speak speak-date speak-header speak-punctuation speak-time speech-rate stress table-layout text-shadow top visibility voice-family volume widows z-index quotes marker-offset outline outline-color outline-style outline-width border-spacing border-collapse page-break-before page-break-after page-break-inside orphans widows} unless const_defined?(:CSS21_PROPERTIES)
CSS21_KEYWORDS = Set.new %w{maroon red orange yellow olive purple fuchsia white lime green navy blue aqua teal black silver gray scroll fixed transparent none top center bottom left right repeat repeat-x repeat-y no-repeat thin medium thick dotted dashed solid double groove ridge inset outset both block inline list-item xx-small x-small small medium large x-large xx-large smaller italic oblique small-caps bold bolder lighter auto disc circle square decimal lower-roman upper-roman lower-alpha upper-alpha inside outside justify underline overline line-through blink capitalize uppercase lowercase baseline sub super top text-top middle bottom text-bottom pre nowrap compact run-in inherit caption icon menu message-box small-caption status-bar marker table inline-table table-column-group table-column table-row-group table-row table-cell table-caption table-header-group table-footer-group screen print projection braille embosed aural tv tty handheld cross hidden open-quote close-quote absolute relative normal collapse serif sans-serif monospace cursive fantasy, always} unless const_defined?(:CSS21_KEYWORDS)
HTML_TAGS = Set.new %w{a abbr address area article aside audio b base bdo blockquote body br button canvas caption cite code col colgroup command datalist dd del details dfn div dl dt em embed fieldset figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link map mark menu meta meter nav noscript object ol optgroup option output p param pre progress q rp rt ruby samp script section select small source span strong style sub sup table tbody td textarea tfoot th thead time title tr ul var video acronym applet big center frame frameset isindex marquee noframes s tt u} unless const_defined?(:HTML_TAGS)
MATHML_TAGS = Set.new %w{annotation annotation-xml maction malign maligngroup malignmark malignscope math menclose merror mfenced mfrac mglyph mi mlabeledtr mlongdiv mmultiscripts mn mo mover mpadded mphantom mprescripts mroot mrow ms mscarries mscarry msgroup msline mspace msqrt msrow mstack mstyle msub msubsup msup mtable mtd mtext mtr munder munderover none semantics} unless const_defined?(:MATHML_TAGS)
SVG_TAGS = Set.new %w{a altGlyph altGlyphDef altGlyphItem animate animateColor animateMotion animateTransform circle clipPath color-profile cursor definition-src defs desc ellipse feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence filter font font-face font-face-format font-face-name font-face-src font-face-uri foreignObject g glyph glyphRef hkern image line linearGradient marker mask metadata missing-glyph mpath path pattern polygon polyline radialGradient rect script set stop style svg switch symbol text textPath title tref tspan use view vkern} unless const_defined?(:SVG_TAGS)
MY_TAGS = HTML_TAGS + MATHML_TAGS + SVG_TAGS unless const_defined?(:MY_TAGS)

Public Instance methods

[Validate]