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

Unified Diff: LayoutTests/fast/repaint/background-resize-height.html

Issue 306483011: Combine background repaint conditions in RenderStyle and RenderObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing small-apple.jpg Created 6 years, 7 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/fast/repaint/background-resize-height.html
diff --git a/LayoutTests/fast/repaint/background-resize-height.html b/LayoutTests/fast/repaint/background-resize-height.html
new file mode 100644
index 0000000000000000000000000000000000000000..1117a9d707493b3ab4fd5bd2064399f21c2b1bdb
--- /dev/null
+++ b/LayoutTests/fast/repaint/background-resize-height.html
@@ -0,0 +1,94 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js" type="text/javascript"></script>
+<script>
+function repaintTest()
+{
+ document.getElementById('container').style.height = '550px';
+}
+window.onload = runRepaintTest;
+</script>
+<style>
+#container {
+ position: absolute;
+ width: 600px;
+ height: 500px;
+}
+.test {
+ backface-visibility: hidden;
+ position: absolute;
+ width: 10%;
+ height: 8%;
+}
+.image {
+ background-image: url(resources/small-apple.jpg);
+ top: 0px;
+}
+.generated {
+ background-image: linear-gradient(blue, green);
+ top: 100px;
+}
+.size-cover {
+ background-size: cover;
+ left: 50px;
+}
+.size-contain {
+ background-size: contain;
+ left: 100px;
+}
+.fixed-height {
+ background-size: auto 30px;
+ left: 150px;
+}
+.percent-height {
+ background-size: auto 50%;
+ left: 200px;
+}
+.top {
+ background-position: left 0px top 10px;
+ left: 250px;
+}
+.bottom {
+ background-position: left 0px bottom 10px;
+ left: 300px;
+}
+.center {
+ background-position: center;
+ left: 350px;
+}
+.no-repeat {
+ background-repeat: no-repeat;
+ left: 400px;
+}
+.repeat-space {
+ background-repeat: space;
+ left: 450px;
+}
+.repeat-round {
+ background-repeat: round;
+ left: 500px;
+}
+</style>
+<div id="container">
+ <div class="test image"></div>
+ <div class="test image size-cover"></div>
+ <div class="test image size-contain"></div>
+ <div class="test image fixed-height"></div>
+ <div class="test image percent-height"></div>
+ <div class="test image top"></div>
+ <div class="test image bottom"></div>
+ <div class="test image center"></div>
+ <div class="test image no-repeat"></div>
+ <div class="test image repeat-space"></div>
+ <div class="test image repeat-round"></div>
+ <div class="test generated"></div>
+ <div class="test generated cover"></div>
+ <div class="test generated contain"></div>
+ <div class="test generated fixed-height"></div>
+ <div class="test generated percent-height"></div>
+ <div class="test generated top"></div>
+ <div class="test generated bottom"></div>
+ <div class="test generated center"></div>
+ <div class="test generated no-repeat"></div>
+ <div class="test generated repeat-space"></div>
+ <div class="test generated repeat-round"></div>
+</div>
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/background-resize-height-expected.txt » ('j') | Source/core/rendering/RenderObject.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698