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

add missing -ms-grid display property to support IE grid layouts #1926

Merged
merged 1 commit into from
Sep 22, 2019

Conversation

dmolnar99
Copy link
Contributor

@dmolnar99 dmolnar99 commented Jul 8, 2019

A similar PR may already be submitted!
Please search among the Pull request before creating one.

Thanks for submitting a pull request! Please provide enough information so that others can review your pull request:

Before opening a pull request, please make sure all the tests pass locally by running npm test.

Summary

Since IE uses the -ms-grid display property instead of the grid property, the display property list was missing this tag. This caused empty rendering for grid layouts on IE.

This PR fixes/implements the following bugs/features

  • [ x ] Bug 1
  • Bug 2
  • Feature 1
  • Feature 2
  • Breaking changes

Explain the motivation for making this change. What existing problem does the pull request solve?

In IE with a grid layout the library produces an empty image, due to the missing display property (-ms-grid).

Test plan (required)

Create a HTML node with CSS grid (use -ms-grid autoperfixer). Try to create an image of this node in IE. Due to the missing property the image is empty and the node is not rendered correctly.

Demonstrate how the issue/feature can be replicated. For most cases, simply adding an appropriate html/css template into the reftests should be sufficient. Please see other tests there for reference.

Code formatting

Please make sure that code adheres to the project code formatting. Running npm run format will automatically format your code correctly.

Closing issues

Fixes #

@niklasvh niklasvh merged commit ee3ca35 into niklasvh:master Sep 22, 2019
pawelzwronek pushed a commit to pawelzwronek/html2canvas that referenced this pull request Oct 13, 2019
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.

2 participants