pub trait Synthesize {
// Required method
fn synthesize(
&mut self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<()>;
}
Expand description
Synthesize fields on an element. This happens before execution of any show rule.
Required Methods§
Sourcefn synthesize(
&mut self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<()>
fn synthesize( &mut self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<()>
Prepare the element for show rule application.