primefaces/primevue

Feature Request: Transform CSS Logical Properties to Physical Properties for Legacy Browser Support

開放

#7,272 建立於 2025年2月18日

 (1 則留言) (0 個反應) (0 位負責人)CSS (1,057 個分叉)batch import
Resolution: Needs Upvote :+1:good first issue

倉庫指標

星標
 (8,326 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

I would like to request a feature to support transforming CSS logical properties to physical properties for better browser compatibility, similar to what Ant Design Vue provides.

Currently, CSS logical properties have limited support in older browsers. By transforming logical properties to their physical counterparts (like converting margin-inline to margin-left/margin-right), we can ensure consistent layout behavior across different browser versions.

Reference implementation from Ant Design Vue:

This feature would allow developers to:

  • Write modern CSS logical properties in their code
  • Automatically get backward compatibility for legacy browsers
  • Maintain clean, future-proof code while ensuring wide browser support

Would the PrimeVue team consider adding this compatibility transformer feature?

貢獻者指南