feat(css-prefix): inline support
MODIFY
internal/compiler/transforms/compile/css-handler/prefix/index.ts
internal/compiler/transforms/compile/css-handler/prefix/index.ts
-/* GENERATED:START(hash:e2a3922cf263e9e7b623fdaeb13af12d42a0109d,id:main) Everything below is automatically generated. DO NOT MODIFY. Run `./rome run scripts/generated-files/css-prefix` to update. */
+/* GENERATED:START(hash:1604f5526468be75cda1fa9d2610acc3f353bcf8,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";
@@ -13,6 +13,7 @@ import cursor from "./prefixes/cursor";
import display from "./prefixes/display";
import hyphens from "./prefixes/hyphens";
import imageSet from "./prefixes/image-set";
+import inline from "./prefixes/inline";
import mask from "./prefixes/mask";
import multicolumn from "./prefixes/multicolumn";
import position from "./prefixes/position";
@@ -45,6 +46,7 @@ export default [
...display,
...hyphens,
...imageSet,
+ ...inline,
...mask,
...multicolumn,
...position,

ADD
internal/compiler/transforms/compile/css-handler/prefix/prefixes/inline.ts
+import {
+ createPrefixVisitor,
+ prefixCSSProperty,
+} from "@internal/compiler/transforms/compile/css-handler/prefix/utils";
+
+// https://github.com/Fyrd/caniuse/blob/main/features-json/css-logical-props.json
+export default [
+ "border-inline-start",
+ "border-inline-end",
+ "margin-inline-start",
+ "margin-inline-end",
+ "padding-inline-start",
+ "padding-inline-end",
+].map((propertyName) =>
+ createPrefixVisitor({
+ name: "inline",
+ enter(path) {
+ return prefixCSSProperty({
+ path,
+ propertyName,
+ browserFeaturesKey: "css-logical-props",
+ });
+ },
+ })
+);

ADD
internal/compiler/transforms/compile/test-fixtures/css-handler/prefix/inline/input.css
+.style {
+ inline: none;
+}
+
+.style {
+ border-inline-start: 1px;
+}
+
+.style {
+ border-inline-end: 1px;
+}
+
+.style {
+ margin-inline-start: 10px;
+}
+
+.style {
+ margin-inline-end: 10px;
+}
+
+.style {
+ padding-inline-start: 10px;
+}
+
+.style {
+ padding-inline-end: 10px;
+}

ADD
internal/compiler/transforms/compile/test-fixtures/css-handler/prefix/inline/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 > inline`
+
+### `Diagnostics`
+
+```
+
+```
+
+### `Input`
+
+```css
+.style {
+ inline: none;
+}
+
+.style {
+ border-inline-start: 1px;
+}
+
+.style {
+ border-inline-end: 1px;
+}
+
+.style {
+ margin-inline-start: 10px;
+}
+
+.style {
+ margin-inline-end: 10px;
+}
+
+.style {
+ padding-inline-start: 10px;
+}
+
+.style {
+ padding-inline-end: 10px;
+}
+
+```
+
+### `Output`
+
+```css
+.style {
+ inline: none;
+}
+
+.style {
+ -moz-border-inline-start: 1px;
+ -webkit-border-inline-start: 1px;
+ border-inline-start: 1px;
+}
+
+.style {
+ -moz-border-inline-end: 1px;
+ -webkit-border-inline-end: 1px;
+ border-inline-end: 1px;
+}
+
+.style {
+ -moz-margin-inline-start: 10px;
+ -webkit-margin-inline-start: 10px;
+ margin-inline-start: 10px;
+}
+
+.style {
+ -moz-margin-inline-end: 10px;
+ -webkit-margin-inline-end: 10px;
+ margin-inline-end: 10px;
+}
+
+.style {
+ -moz-padding-inline-start: 10px;
+ -webkit-padding-inline-start: 10px;
+ padding-inline-start: 10px;
+}
+
+.style {
+ -moz-padding-inline-end: 10px;
+ -webkit-padding-inline-end: 10px;
+ padding-inline-end: 10px;
+}
+
+```

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

feat(css-prefix): inline support (#1498)