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

Unified Diff: third_party/WebKit/LayoutTests/compositing/will-change/will-change-preserve-backface-visibility-expected.html

Issue 2818533004: Fix backface-visibility with will-change (Closed)
Patch Set: reduce layout test + flag expectation Created 3 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: third_party/WebKit/LayoutTests/compositing/will-change/will-change-preserve-backface-visibility-expected.html
diff --git a/third_party/WebKit/LayoutTests/compositing/will-change/will-change-preserve-backface-visibility-expected.html b/third_party/WebKit/LayoutTests/compositing/will-change/will-change-preserve-backface-visibility-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..40531e71d6e45a431bc278cb501a45d042ccb257
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/compositing/will-change/will-change-preserve-backface-visibility-expected.html
@@ -0,0 +1,60 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+.list {
+ height: 200px;
+ position: relative;
+ overflow: auto;
+}
+
+.will-change {
+ will-change: transform;
+ backface-visibility: hidden;
+}
+
+.flip-container, .front, .back {
+ -webkit-perspective: 1000;
+ width: 320px;
+ height: 427px;
+}
+
+.front, .back {
+ backface-visibility: hidden;
+
+ transition: 0.0s;
+ transform-style: preserve-3d;
+ transform: rotateY(0deg);
+
+ position: absolute;
+ top: 0;
+ left: 0;
+}
+
+.front {
+ transform: rotateY(180deg);
+}
+
+.back {
+ background: lightblue;
+ opacity: 0.5;
+}
+
+</style>
+</head>
+
+<body>
+<div class="flip-container">
+ <div class="front">
+ <div class="list">
+ <div style="height: 82px; left: 0px; position: absolute; top: 0px; width: 100%;"></div>
+ <div style="height: 82px; left: 0px; position: absolute; top: 164px; width: 100%;"></div>
+ </div>
+ </div>
+ <div class="back">
+ </div>
+</div>
+<p>This test verifies that "will-change" preserves the backface-visibility for
+ scrollbar.</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698