You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-11Lines changed: 18 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -351,18 +351,16 @@ While everything in the [CSS Logical Properties and Values Level 1](https://www.
351
351
specification has been evaluated and most features are supported, this plugin does not generate utilities for
352
352
everything. If something does not have a non-logical equivalent in Tailwind's defaults, it is not supported.
353
353
354
-
- Logical Values for the `caption-side` property: I just noticed as I was wrapping up v4.0.0 that Tailwind added
355
-
support for `caption-side` in v4! I will add the logical equivalent in a future update.
354
+
- Logical Values for the `caption-side` property: Tailwind only has `caption-side` utilities for the vertical axis, and
355
+
according to the spec, `top` and `bottom` qualify as logical values already.
356
356
- Flow-relative Border Styles: Tailwind only has `border-style` utilities for all sides of an element at once.
357
357
358
358
As for other logical properties and values from outside of the main specification:
359
359
360
-
- Flow-relative Overflow properties `overflow-block` and `overflow-inline`: while Tailwind does support `overflow`,
361
-
this plugin does not support `overflow-block` or `overflow-inline` yet, due to a lack of browser support and
362
-
polyfills. As of June 2024,
363
-
[only Firefox supports them](https://caniuse.com/mdn-css_properties_overflow-block), and as far as I can
364
-
tell there are no polyfills available. (Neither postcss-preset-env nor postcss-logical apply any transformations on
365
-
these properties.)
360
+
- Flow-relative Overflow properties `overflow-block` and `overflow-inline`: for several years these were only supported
361
+
by Firefox, but now they are considered Baseline 2025 and are
362
+
[supported by all major browsers](https://caniuse.com/mdn-css_properties_overflow-block). I aim to add support for
363
+
these in the near future.
366
364
367
365
If there are any notable omissions that you think should be supported, please
368
366
[file an issue](https://github.com/stevecochrane/tailwindcss-logical/issues) and let me know.
@@ -407,21 +405,30 @@ values will be converted to attribute selectors that any browser can understand.
407
405
At this point I consider this plugin feature complete, but I will continue to monitor official specifications, as well
408
406
as Tailwind itself, and update this plugin accordingly when anything changes.
409
407
410
-
One thing I do plan to do is add support for `caption-side`, now that it is part of Tailwind itself. I will also
411
-
consider dropping the legacy plugin API and building entirely with CSS in the Tailwind v4 way eventually, if there is
412
-
enough value in doing so.
408
+
I've tried dropping the legacy plugin API and building entirely with CSS the Tailwind v4 way, though the documentation isn't enough for my needs and all of the official Tailwind plugins still use the legacy API, so I haven't seen any functional examples. I might try again at some point if more examples appear and if there's enough value in doing so.
413
409
414
410
## Contributing
415
411
416
412
If you would like to contribute, pull requests are totally welcome, though I recommend starting by
417
413
[filing an issue](https://github.com/stevecochrane/tailwindcss-logical/issues).
418
414
415
+
Updating the unit tests is a real pain and I would not wish that upon anybody, especially someone kind enough to
416
+
contribute to this project, so if you contribute an update to the plugin, I can handle the tests.
417
+
419
418
1. Fork the project
420
419
2. Check out a feature branch (e.g. `git checkout -b feature-foo-bar`)
0 commit comments