diff --git a/.changeset/sixty-files-swim.md b/.changeset/sixty-files-swim.md new file mode 100644 index 00000000..09a126f1 --- /dev/null +++ b/.changeset/sixty-files-swim.md @@ -0,0 +1,5 @@ +--- +"@devup-ui/wasm": patch +--- + +Fix webkit-line-clamp issue diff --git a/apps/landing/src/app/page.tsx b/apps/landing/src/app/page.tsx index eebec566..85c3042f 100644 --- a/apps/landing/src/app/page.tsx +++ b/apps/landing/src/app/page.tsx @@ -84,7 +84,12 @@ export default function HomePage() { - + Zero Config, Zero FOUC, Zero Runtime, CSS in JS Preprocessor diff --git a/libs/extractor/src/extract_style/constant.rs b/libs/extractor/src/extract_style/constant.rs index 8e120f03..a1e1821c 100644 --- a/libs/extractor/src/extract_style/constant.rs +++ b/libs/extractor/src/extract_style/constant.rs @@ -21,5 +21,5 @@ pub(super) static MAINTAIN_VALUE_PROPERTIES: phf::Set<&str> = phf_set! { "animation-iteration-count", "tab-size", "moz-tab-size", - "webkit-line-clamp" + "-webkit-line-clamp" }; diff --git a/libs/extractor/src/snapshots/extractor__tests__maintain_value.snap b/libs/extractor/src/snapshots/extractor__tests__maintain_value.snap index 156a036d..ec0c35fc 100644 --- a/libs/extractor/src/snapshots/extractor__tests__maintain_value.snap +++ b/libs/extractor/src/snapshots/extractor__tests__maintain_value.snap @@ -16,7 +16,7 @@ ToBTreeSet { Static( ExtractStaticStyle { property: "-webkit-line-clamp", - value: "16px", + value: "4", level: 0, selector: None, style_order: None,