Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PropertyMap ¶
A PropertyMap maps a property name to a CSS value. TODO should this really be exported?
func MatchNode ¶
func MatchNode(node dom.Node, def, user, author *css.Stylesheet, pseudo string) PropertyMap
MatchNode creates the PropertyMap for node, given the default, user and author stylesheets.
type Style ¶
type Style struct { SpecifiedValues PropertyMap ComputedValues PropertyMap // This is just a cache Parent *Style Node dom.Node Children []*Style }
A Style represents a full CSS style. This includes looking up inherited values. It also knowns about the tree structure?! TODO rename
func (*Style) Font ¶
Font creates a font query that may be used by a system dependent font loader to find and load the most suitable font.
Click to show internal directories.
Click to hide internal directories.