Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Unified Diff: LayoutTests/compositing/perspective-origin-with-scrollbars.html

Issue 1030323005: Simplify application of perspective origin. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add three more test expectation changes (added since earlier) Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/compositing/perspective-origin-with-scrollbars.html
diff --git a/LayoutTests/compositing/perspective-origin-with-scrollbars.html b/LayoutTests/compositing/perspective-origin-with-scrollbars.html
new file mode 100644
index 0000000000000000000000000000000000000000..414994b3b2c6e7f1b3c2f80fd4998728c92370e8
--- /dev/null
+++ b/LayoutTests/compositing/perspective-origin-with-scrollbars.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+
+<!--
+ The perspective origin should be positioned in the container's border box,
+ regardless of the presence of scrollbars.
+-->
+
+<style>
+.container {
+ background-color: green;
+ border: 10px solid black;
+ overflow: scroll;
+ position: relative;
+ width: 100px;
+ height: 100px;
+ margin: 10px 0;
+ perspective: 500px;
+}
+.transformed {
+ background-color: blue;
+ width: 50px;
+ height: 50px;
+ transform: translateZ(-1000px);
+}
+</style>
+
+<div class="container">
+ <div class="transformed"></div>
+</div>
+
+<!-- This blue box should be smaller because it should be obscured by the border. -->
+<div class="container" style="perspective-origin: 0 0">
+ <div class="transformed"></div>
+</div>
+
+<div class="container" style="perspective-origin: 60% 40px">
+ <div class="transformed"></div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698