MCPcopy Create free account
hub / github.com/boxesandglue/bagme / AddCSS

Method AddCSS

document/document.go:200–202  ·  view source on GitHub ↗

AddCSS reads CSS instructions from a string.

(css string)

Source from the content-addressed store, hash-verified

198
199// AddCSS reads CSS instructions from a string.
200func (d *Document) AddCSS(css string) error {
201 return d.cssbuilder.AddCSS(css)
202}
203
204// OutputAt renders an HTML fragment at an absolute position (x, y) on the
205// current page with the given width. Use this for precise placement of

Callers 3

TestAddCSSFunction · 0.80
TestPageSizeCustomFunction · 0.80
TestRenderPagesWithCSSFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestAddCSSFunction · 0.64
TestPageSizeCustomFunction · 0.64
TestRenderPagesWithCSSFunction · 0.64