Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added direction css property #2529

Closed
wants to merge 3 commits into from

Conversation

hasanparasteh
Copy link

@hasanparasteh hasanparasteh commented May 11, 2021

Summary

This PR fixes/implements the following bugs/features

When I wanted to use jsPdf, html2pdf.js and etc, there was a problem with RTL text direction in rendering process. So this PR should add support to direction property for CanvasRenderingContext2D.direction and fix the problem.

I also created a reftests to demonstrate the problem and showing the issue is existing.

@niklasvh
Copy link
Owner

niklasvh commented Jul 4, 2021

This PR parses the direction property from CSS but never applies it to the CanvasRenderingContext2D.direction property?

@hasanparasteh
Copy link
Author

hasanparasteh commented Jul 4, 2021

Yes. I just added direction property... now when you said it I realized that I forgot to apply it to CanvasRenderingContext2D.direction😅. I really wanted to fix the #2488 issue and this is what I came with to help me do the task I need. I think this PR needs more work to cover up the whole RTL problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RTL direction problem
2 participants