Versions in this module Expand all Collapse all v0 v0.1.0 May 4, 2019 Changes in this version + type CSSRule struct + Rules []*CSSRule + Style CSSStyleRule + Type RuleType + func NewRule(ruleType RuleType) *CSSRule + type CSSStyleDeclaration struct + Important int + Property string + Value string + func NewCSSStyleDeclaration(property, value string, important int) *CSSStyleDeclaration + func ParseBlock(csstext string) []*CSSStyleDeclaration + func (decl *CSSStyleDeclaration) Text() string + type CSSStyleRule struct + SelectorText string + Styles []*CSSStyleDeclaration + func (sr *CSSStyleRule) Text() string + type CSSStyleSheet struct + CssRuleList []*CSSRule + Media string + Type string + func Parse(csstext string) *CSSStyleSheet + func (ss *CSSStyleSheet) GetCSSRuleList() []*CSSRule + type RuleType int + const CHARSET_RULE + const COUNTER_STYLE_RULE + const FONT_FACE_RULE + const IMPORT_RULE + const KEYFRAMES_RULE + const MEDIA_RULE + const PAGE_RULE + const STYLE_RULE + const WEBKIT_KEYFRAMES_RULE + func (rt RuleType) Text() string + type State int + const STATE_NONE + const STATE_PROPERTY + const STATE_SELECTOR + const STATE_VALUE