feat(css-prefix): hyphens support
MODIFY
internal/compiler/transforms/compile/css-handler/prefix/index.ts
internal/compiler/transforms/compile/css-handler/prefix/index.ts
-/* GENERATED:START(hash:44fa10c83c1933e066127255038cbce06cd6327a,id:main) Everything below is automatically generated. DO NOT MODIFY. Run `./rome run scripts/generated-files/css-prefix` to update. */
+/* GENERATED:START(hash:d74acc36e02dba91968d99e626d2c2b010b27e0a,id:main) Everything below is automatically generated. DO NOT MODIFY. Run `./rome run scripts/generated-files/css-prefix` to update. */
import animation from "./prefixes/animation";
import backdropFilter from "./prefixes/backdrop-filter";
import borderRadius from "./prefixes/border-radius";
import boxShadow from "./prefixes/box-shadow";
import boxSizing from "./prefixes/box-sizing";
import display from "./prefixes/display";
+import hyphens from "./prefixes/hyphens";
import multicolumn from "./prefixes/multicolumn";
import position from "./prefixes/position";
import transform from "./prefixes/transform";
@@ -18,6 +19,7 @@ export default [
...boxShadow,
...boxSizing,
...display,
+ ...hyphens,
...multicolumn,
...position,
...transform,

ADD
internal/compiler/transforms/compile/css-handler/prefix/prefixes/hyphens.ts
+import {
+ createPrefixVisitor,
+ prefixCSSProperty,
+} from "@internal/compiler/transforms/compile/css-handler/prefix/utils";
+
+// https://github.com/Fyrd/caniuse/blob/main/features-json/css-hyphens.json
+export default [
+ createPrefixVisitor({
+ name: "hyphens",
+ enter(path) {
+ return prefixCSSProperty({
+ path,
+ propertyName: "hyphens",
+ browserFeaturesKey: "css-hyphens",
+ });
+ },
+ }),
+];

ADD
internal/compiler/transforms/compile/test-fixtures/css-handler/prefix/hyphens/input.css
+.style {
+ hyphens: none;
+}

ADD
internal/compiler/transforms/compile/test-fixtures/css-handler/prefix/hyphens/input.test.md
+# `index.test.ts`
+
+**DO NOT MODIFY**. This file has been autogenerated. Run `rome test internal/compiler/transforms/compile/index.test.ts --update-snapshots` to update.
+
+## `css-handler > prefix > hyphens`
+
+### `Diagnostics`
+
+```
+
+```
+
+### `Input`
+
+```css
+.style {
+ hyphens: none;
+}
+
+```
+
+### `Output`
+
+```css
+.style {
+ -ms-hyphens: none;
+ -moz-hyphens: none;
+ -webkit-hyphens: none;
+ hyphens: none;
+}
+
+```

ADD
website/src/docs/css-handler/prefix/hyphens.md
+---
+title: Prefix hyphens
+layout: layouts/prefix.liquid
+showHero: false
+description: MISSING DOCUMENTATION
+eleventyNavigation:
+ key: css-handler/prefix/hyphens
+ parent: css-handler
+ title: hyphens
+---
+
+# hyphens
+
+MISSING DOCUMENTATION
\ No newline at end of file

feat(css-prefix): hyphens support (#1452)