feat(css-prefix): box-decoration-break support
MODIFY
internal/compiler/transforms/compile/css-handler/prefix/index.ts
internal/compiler/transforms/compile/css-handler/prefix/index.ts
-/* GENERATED:START(hash:5b4553b667cceaa126dc9acfe805cacaae11e993,id:main) Everything below is automatically generated. DO NOT MODIFY. Run `./rome run scripts/generated-files/css-prefix` to update. */
+/* GENERATED:START(hash:27c3820b3347e8d3a51fae17d565dc4fa3be3710,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 appearance from "./prefixes/appearance";
import backdropFilter from "./prefixes/backdrop-filter";
import borderRadius from "./prefixes/border-radius";
+import boxDecorationBreak from "./prefixes/box-decoration-break";
import boxShadow from "./prefixes/box-shadow";
import boxSizing from "./prefixes/box-sizing";
import colorAdjust from "./prefixes/color-adjust";
@@ -27,6 +28,7 @@ export default [
...appearance,
...backdropFilter,
...borderRadius,
+ ...boxDecorationBreak,
...boxShadow,
...boxSizing,
...colorAdjust,

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

ADD
internal/compiler/transforms/compile/test-fixtures/css-handler/prefix/box-decoration-break/input.css
+.style {
+ box-decoration-break: slice;
+}
+
+.style {
+ box-decoration-break: clone;
+}

ADD
internal/compiler/transforms/compile/test-fixtures/css-handler/prefix/box-decoration-break/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 > box-decoration-break`
+
+### `Diagnostics`
+
+```
+
+```
+
+### `Input`
+
+```css
+.style {
+ box-decoration-break: slice;
+}
+
+.style {
+ box-decoration-break: clone;
+}
+
+```
+
+### `Output`
+
+```css
+.style {
+ -webkit-box-decoration-break: slice;
+ box-decoration-break: slice;
+}
+
+.style {
+ -webkit-box-decoration-break: clone;
+ box-decoration-break: clone;
+}
+
+```

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

feat(css-prefix): box-decoration-break support (#1488)