Bug 1494685 - Add a reftest. r=kats, a=test-only
authorEmilio Cobos Álvarez <emilio@crisal.io>
Fri, 12 Oct 2018 02:04:27 +0000
changeset 500983 fa0dfb7abb5e0cc2466860580082c620e7819c86
parent 500982 c79685defc28ae220abf01b05485536ac32c51bb
child 500984 0a7792cc133f00007c69cd8e5200a977f801d876
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats, test-only
bugs1494685
milestone64.0
Bug 1494685 - Add a reftest. r=kats, a=test-only 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
testing/web-platform/tests/css/css-transforms/text-perspective-001.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-transforms/text-perspective-001.html
@@ -0,0 +1,27 @@
+<!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>