Documentation
¶
Overview ¶
Package css implements a css level 3 parser as described at http://www.w3.org/TR/css-syntax-3/
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtRule ¶
type AtRule struct { AtKeyword string Param []string SimpleBlock *SimpleBlock }
AtRule is an AtKeyword an optional param and an SimpleBlock. http://www.w3.org/TR/css-syntax-3/#consume-an-at-rule0
type BlockItem ¶
type BlockItem struct { DeclarationList *Ruleset *AtRule }
BlockItem contains one and only one of DeclarationList, *Ruleset, or *AtRule
type Declaration ¶
Declaration is a Property and Value pair.
type DeclarationList ¶
type DeclarationList []Declaration
DeclarationList is a list of Declarations forming a block.
type HtmlComment ¶
type HtmlComment string
type Ruleset ¶
type Ruleset struct { Selector *selector.Chain DeclarationList }
Ruleset is a selector followed by a Declaration Block
type SimpleBlock ¶
type SimpleBlock struct {
Content []BlockItem
}
SimpleBlock contains a list of BlockItems
type Statement ¶
type Statement struct { *Ruleset *AtRule *Comment *HtmlComment }
Statement is either a Ruleset or an AtRule or a comment.
type Stylesheet ¶
type Stylesheet struct {
Statements []Statement
}
Stylesheet is a list of Statements
Click to show internal directories.
Click to hide internal directories.