summaryrefslogtreecommitdiff
path: root/crates/typst-html/src/css.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-html/src/css.rs')
-rw-r--r--crates/typst-html/src/css.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/crates/typst-html/src/css.rs b/crates/typst-html/src/css.rs
index 6c84cba0..5916d314 100644
--- a/crates/typst-html/src/css.rs
+++ b/crates/typst-html/src/css.rs
@@ -3,28 +3,10 @@
use std::fmt::{self, Display, Write};
use ecow::EcoString;
-use typst_library::html::{attr, HtmlElem};
use typst_library::layout::{Length, Rel};
use typst_library::visualize::{Color, Hsl, LinearRgb, Oklab, Oklch, Rgb};
use typst_utils::Numeric;
-/// Additional methods for [`HtmlElem`].
-pub trait HtmlElemExt {
- /// Adds the styles to an element if the property list is non-empty.
- fn with_styles(self, properties: Properties) -> Self;
-}
-
-impl HtmlElemExt for HtmlElem {
- /// Adds CSS styles to an element.
- fn with_styles(self, properties: Properties) -> Self {
- if let Some(value) = properties.into_inline_styles() {
- self.with_attr(attr::style, value)
- } else {
- self
- }
- }
-}
-
/// A list of CSS properties with values.
#[derive(Debug, Default)]
pub struct Properties(EcoString);