MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / add_style

Method add_style

css-inline/src/html/document.rs:113–115  ·  view source on GitHub ↗

Add a new `style` element node.

(&mut self, node: NodeId)

Source from the content-addressed store, hash-verified

111
112 /// Add a new `style` element node.
113 pub(super) fn add_style(&mut self, node: NodeId) {
114 self.styles.push(node);
115 }
116
117 /// Iterator over blocks of CSS defined inside `style` tags.
118 pub(crate) fn styles(&self) -> impl Iterator<Item = (NodeId, &str)> + '_ {

Callers 1

create_elementMethod · 0.80

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected