package cascade
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=c303651e043ed8d807d3d6f2c3745233e792ce7c30d562c9717d284e1bf5ac6a
sha512=681847993deabdc3899f62268b3cbc931623abca0413b0e8873e8568ec25a86c4d3db7f7f0e6a6a6bf24dbfdc7df314dae07ae66d49f76f3dd6953a4381bbf54
doc/cascade/Cascade/Apply/index.html
Module Cascade.ApplySource
Project a stylesheet onto an element tree: resolve the cascade for each element and return the declarations to write into its style attribute, along with the rules that have no inline form. The cascade itself is Resolve; this adds the inline-specific policy. Pure - it returns the declarations to apply, the caller writes them onto the tree.
A node paired with the inline-style declarations to write onto it.
type 'node result = {styles : 'node assignment list;(*Each element with the declarations to set on its
*)styleattribute.keep_css : string;(*The rules with no inline form, serialised as a minified
*)<style>body, or""when there are none.kept : int;(*How many rules
*)keep_cssholds, for reporting. A block at-rule contributes the rules inside it rather than itself; one that holds no statements of its own (@font-face,@keyframes) counts as the one thing it keeps.
}