Skip to content

Commit 6b3cad8

Browse files
committed
PseudoClass ToCSS
1 parent 6968cca commit 6b3cad8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/selector.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,14 @@ impl<'i> cssparser::ToCss for PseudoClass<'i> {
479479
}
480480
}
481481

482+
impl<'i> ToCss for PseudoClass<'i> {
483+
fn to_css<W>(&self, dest: &mut Printer<W>) -> Result<(), PrinterError>
484+
where
485+
W: std::fmt::Write {
486+
self.to_css_with_context(dest, None)
487+
}
488+
}
489+
482490
impl<'a, 'i> ToCssWithContext<'a, 'i> for PseudoClass<'i> {
483491
fn to_css_with_context<W>(
484492
&self,

0 commit comments

Comments
 (0)