Skip to content

Commit

Permalink
Implement psuedo-element stylo methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Dec 2, 2024
1 parent 7d80e58 commit 0b9de23
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/blitz-dom/src/stylo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,18 @@ impl<'a> TElement for BlitzNode<'a> {
.intersection(ElementSelectorFlags::RELATIVE_SELECTOR_SEARCH_DIRECTION_ANCESTOR_SIBLING)
}

fn before_pseudo_element(&self) -> Option<Self> {
self.before.map(|id| self.with(id))
}

fn after_pseudo_element(&self) -> Option<Self> {
self.after.map(|id| self.with(id))
}

fn marker_pseudo_element(&self) -> Option<Self> {
None
}

// fn update_animations(
// &self,
// before_change_style: Option<Arc<ComputedValues>>,
Expand Down

0 comments on commit 0b9de23

Please sign in to comment.