Versions in this module Expand all Collapse all v0 v0.7.2 Dec 1, 2026 v0.7.1 Nov 30, 2026 v0.7.0 Nov 30, 2026 v0.6.0 Nov 29, 2026 v0.5.1 Nov 29, 2026 v0.5.0 Nov 29, 2026 v0.4.0 Nov 28, 2026 v0.3.0 Nov 18, 2026 v0.2.0 Oct 7, 2026 v0.1.1 Oct 7, 2026 v0.1.0 Oct 5, 2026 Changes in this version + const MaxDeclarations + var ErrValue = errors.New("style: invalid or unsupported value") + type Block struct + func Parse(source string, element uint32) (Block, error) + func (b Block) Count() int + func (b Block) Error(name string, code renderdiag.Code) error + func (b Block) Get(name string) (Value, bool) + func (b Block) WithDimensionHints(width, height float64) (Block, error) + type Computed struct + func Compute(tag string, block Block, parent *Computed, metrics Metrics) (Computed, error) + func (c Computed) Color(name string) color.NRGBA + func (c Computed) FontSize() float64 + func (c Computed) Get(name string) Value + func (c Computed) Keyword(name string) string + func (c Computed) Length(name string) Length + func (c Computed) Number(name string) float64 + func (c Computed) RootFont() float64 + type Kind uint8 + const ColorValue + const ImageValue + const KeywordValue + const LengthValue + const NumberValue + type Length struct + Unit Unit + Value float64 + func ParseLength(source string) (Length, error) + func (l Length) Resolve(metrics Metrics) (float64, error) + type Metrics struct + Containing float64 + Font float64 + RootFont float64 + ViewportHeight float64 + ViewportWidth float64 + type Unit uint8 + const Auto + const Em + const None + const Percent + const Px + const Rem + const VH + const VW + type Value struct + Color color.NRGBA + Image string + Keyword string + Kind Kind + Length Length + Number float64