feat(css-prefix): text-orientation support
MODIFY
internal/compiler/transforms/compile/css-handler/prefix/index.ts
internal/compiler/transforms/compile/css-handler/prefix/index.ts
-/* GENERATED:START(hash:d74acc36e02dba91968d99e626d2c2b010b27e0a,id:main) Everything below is automatically generated. DO NOT MODIFY. Run `./rome run scripts/generated-files/css-prefix` to update. */
+/* GENERATED:START(hash:0ed7a412acb9745694bd9288b8560b676a685fae,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";
@@ -8,6 +8,7 @@ import display from "./prefixes/display";
import hyphens from "./prefixes/hyphens";
import multicolumn from "./prefixes/multicolumn";
import position from "./prefixes/position";
+import textOrientation from "./prefixes/text-orientation";
import transform from "./prefixes/transform";
import transition from "./prefixes/transition";
import userSelect from "./prefixes/user-select";
@@ -22,6 +23,7 @@ export default [
...hyphens,
...multicolumn,
...position,
+ ...textOrientation,
...transform,
...transition,
...userSelect,

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

ADD
internal/compiler/transforms/compile/test-fixtures/css-handler/prefix/text-orientation/input.css
+.style {
+ text-orientation: mixed;
+}
+
+.style {
+ text-orientation: upright;
+}

ADD
internal/compiler/transforms/compile/test-fixtures/css-handler/prefix/text-orientation/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-orientation`
+
+### `Diagnostics`
+
+```
+
+```
+
+### `Input`
+
+```css
+.style {
+ text-orientation: mixed;
+}
+
+.style {
+ text-orientation: upright;
+}
+
+```
+
+### `Output`
+
+```css
+.style {
+ -webkit-text-orientation: mixed;
+ text-orientation: mixed;
+}
+
+.style {
+ -webkit-text-orientation: upright;
+ text-orientation: upright;
+}
+
+```

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

feat(css-prefix): text-orientation support (#1453)