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

Dom-to-image conversion results misaligned content in Image for CSS flex styles #168

Open
1 task done
premananth-banusekaran-ctct opened this issue Mar 20, 2024 · 1 comment

Comments

@premananth-banusekaran-ctct
Copy link

premananth-banusekaran-ctct commented Mar 20, 2024

Use case:

The DOM content was misaligned for CSS Flex properties when converting from dom-to-image using the Blob method (We also tried the PNG conversion method and were able to reproduce this issue). This is specifically happening to the Laptop screen for the below scenario
Scenario 1:

  • Windows Display Settings: Scale - 125% recommended settings
  • Browser set to default view (Zoom 100%)

Scenario 2:

  • Changing Windows Display Settings: Scale - 100% recommended settings
  • When the browser Zoom level is set to 125% and above.

Live Code Link: StackBlitz
Source File: Dom-to-image-Alignment Issue.zip

Expected behavior

The image should render the layout the same as in the browser view.
Expected and Actual Browser View:
BrowserView

Actual behavior

Actual Output from dom-to-image-more lib:
DomToImage-toBlob

Library version

Dom-to-image-more: 3.1.6

Browsers

  • Chrome 120+
@cWenyu
Copy link

cWenyu commented Nov 8, 2024

Hi, I'm facing the same issue on verison 3.5.0, do you have any ideas to fix/aviod it? Thanks/Wenyu

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

No branches or pull requests

2 participants