feat(css-prefix): text-align-last support
MODIFY
internal/compiler/transforms/compile/css-handler/prefix/index.ts
internal/compiler/transforms/compile/css-handler/prefix/index.ts
-/* GENERATED:START(hash:9d2f97abaad6ed5af257118f6a0f51bd0305122f,id:main) Everything below is automatically generated. DO NOT MODIFY. Run `./rome run scripts/generated-files/css-prefix` to update. */
+/* GENERATED:START(hash:5b4553b667cceaa126dc9acfe805cacaae11e993,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";
@@ -14,6 +14,7 @@ import multicolumn from "./prefixes/multicolumn";
import position from "./prefixes/position";
import scrollSnapType from "./prefixes/scroll-snap-type";
import tabSize from "./prefixes/tab-size";
+import textAlignLast from "./prefixes/text-align-last";
import textOrientation from "./prefixes/text-orientation";
import textOverflow from "./prefixes/text-overflow";
import transform from "./prefixes/transform";
@@ -37,6 +38,7 @@ export default [
...position,
...scrollSnapType,
...tabSize,
+ ...textAlignLast,
...textOrientation,
...textOverflow,
...transform,

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

ADD
internal/compiler/transforms/compile/test-fixtures/css-handler/prefix/text-align-last/input.css
+.style {
+ text-align-last: center;
+}
+
+.style {
+ text-align-last: right;
+}
+
+.style {
+ text-align-last: left;
+}

ADD
internal/compiler/transforms/compile/test-fixtures/css-handler/prefix/text-align-last/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 > text-align-last`
+
+### `Diagnostics`
+
+```
+
+```
+
+### `Input`
+
+```css
+.style {
+ text-align-last: center;
+}
+
+.style {
+ text-align-last: right;
+}
+
+.style {
+ text-align-last: left;
+}
+
+```
+
+### `Output`
+
+```css
+.style {
+ -moz-text-align-last: center;
+ text-align-last: center;
+}
+
+.style {
+ -moz-text-align-last: right;
+ text-align-last: right;
+}
+
+.style {
+ -moz-text-align-last: left;
+ text-align-last: left;
+}
+
+```

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

feat(css-prefix): text-align-last support (#1479)