gecko-dev/testing/web-platform/tests/css/css-transforms/text-perspective-001.html
Emilio Cobos Álvarez 14f0acec0f Bug 1494685 - Add a reftest. r=kats
Probably not the most reliable test to catch this (as it depends on
the font and such) but still fails here and I'd like WPT to have a test-case
for this. I'm looking into adding a WR test-case ATM, though fighting with
it way too much.

Differential Revision: https://phabricator.services.mozilla.com/D8438
2018-10-30 01:11:21 +01:00

27 lines
628 B
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype>
<meta charset="utf-8">
<title>CSS Test: Text is not incorrectly clipped in presence of perspective.</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1494685">
<link rel="mismatch" href="about:blank">
<style>
* {
margin: 0;
padding: 0;
}
.container {
perspective: 1px;
}
.heading {
transform: translateZ(-9px) scale(10);
}
h1 {
font-size: 100px;
}
</style>
<div class="container">
<div class="heading">
<h1>X</h1>
</div>
</div>