|
alpha_mul()
|
Multiply alpha channel by given value |
|
alpha_set()
|
Set alpha channel |
|
cat_indent()
|
A version of cat which has an indentation depth |
|
css_apply()
|
Create a named list (indexed by xpath) of the final computed style for each element |
|
css_apply_inline()
|
Apply the CSS to the given HTML, storing the result as inline 'style' tags on each element |
|
css_colour_to_hex()
|
Convert CSS colour to standard hex colour (with alpha0) |
|
css_length()
|
Create a new CSS length object |
|
css_length_as_pixels()
|
Convert a CSS unit into a rough pixel measurement |
|
css_merge()
|
Merge multiple stylesheets given in priority order |
|
css_merge_core()
|
A CSS-aware version of nested modifyList() |
|
css_pretty_print()
|
Pretty Printing of a CSS stylesheet (as produced by read_css()) |
|
css_string_as_css_length()
|
Convert a string value into a numeric value with a 'unit' attribute (if a unit is present) |
|
css_string_as_pixels()
|
Naively convert a CSS string value (e.g. "1em") into the number of pixels
this represents. |
|
html4_user_agent_css
|
HTML4 user-agent css |
|
init_stream()
|
A minimal stream object (reminiscent of an R6 class) |
|
is_char1()
|
Test if string is a single string with something in it |
|
lex()
|
Break a string into labelled tokens based upon a set of patterns |
|
parse_at()
|
Parse a simple "at' rule from the stream at the current location |
|
parse_colour_hex()
|
Normalize a hex colour to an 8-char hex |
|
parse_colour_hsl_to_hex()
|
Parse a hsl/hsla colour spec to a hex colour |
|
parse_colour_rgb_to_hex()
|
Parse an rgb() or rgba() colour spec to a hex colour |
|
parse_declaration()
|
Extract a declaration (i.e. a property/value pair) from token stream |
|
parse_nested_at()
|
Parse a 'nested at' rule from the stream at the current location. |
|
parse_rule()
|
Parse a rule from the stream at the current location |
|
parse_rules_from_stream()
|
Parse rules from the stream at the current location |
|
parse_selectors()
|
Extract selector from CSS tokens stream |
|
print(<stream>)
|
s3 method fr printing a stream |
|
read_css()
|
Convert CSS stylesheet from text or a file into a list object |
|
read_inline_style()
|
Parse CSS declaration block (aka inline style) to a named list of CSS declarations |
|
recurse_node_tree()
|
Depth-first recursion into the HTML document node tree to accumulate/cascade styles |
|
selector_specificity()
|
Calculate selector specificity |
|
split_font_shorthand()
|
Split font shorthand property into a named list of verbose "font-*" properties |
|
style_flatten_to_inline()
|
Flatten a style to an inline string |
|
style_merge()
|
Merge multiple styles for a given element which are given in priority order |
|
style_pretty_print()
|
Pretty Printing of a single style or declaration block |
|
trim()
|
Trim the end off a string |
|
xml_duplicate()
|
Make a distinct, unlinked, independent copy of an xml node |