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
ShadyCSS supports :dir() to provide different styling for RTL and LTR layouts.
This should be backported to 1.x, and also polyfilled to be supported in Native ShadowDOM for 2.x.
The approach for 2.x is somewhat simple: With a mixin, we can detect the direction of the page and set an attribute on all elements implementing the mixin. Then, we can transform :dir() into a simple attribute selector.
The text was updated successfully, but these errors were encountered:
ShadyCSS supports
:dir()
to provide different styling for RTL and LTR layouts.This should be backported to 1.x, and also polyfilled to be supported in Native ShadowDOM for 2.x.
The approach for 2.x is somewhat simple: With a mixin, we can detect the direction of the page and set an attribute on all elements implementing the mixin. Then, we can transform
:dir()
into a simple attribute selector.The text was updated successfully, but these errors were encountered: