modulepackage
0.0.0-20241014190843-a38491759379
Repository: https://github.com/boxesandglue/csshtml.git
Documentation: pkg.go.dev
# README
Apply CSS to a HTML DOM tree.
# Functions
GetAttributes returns a map from all HTML attributes.
NewCSSParser returns a new CSS object.
NewCSSParserWithDefaults returns a new CSS object with the default stylesheet included.
PapersizeWidthHeight converts the spec to the width and height.
ResolveAttributes returns the resolved styles and the attributes of the node.
# Variables
CSSdefaults contains browser-like styling of some elements.
# Structs
CSS is the main structure that contains cascading style sheet information.
FontFace contains information from a @font-face rule.
FontSource has information from the src attribute.
Page defines a page.