Skip to content

Sideways writing mode breaks capture #3267

@tomas-janecka-tfs

Description

@tomas-janecka-tfs
  1. Create index.html:
<!doctype html>
<html>
<head>
</head>
<body>
  <p #text style="writing-mode: sideways-lr;">This text is broken</p>
  <button id="btn">Capture</button>
</body>
  1. Append script tag to index.html:
<script>
// contents of html2canvas.js
// ...
document.getElementById('btn').onclick = function() {
    html2canvas(document.body).then(function(canvas) {
        document.body.appendChild(canvas);
    });
};
</script>
  1. Click the button

Expected

Image

Actual

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions