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

Unified Diff: LayoutTests/fast/repaint/percent-size-image-resize-container.html

Issue 458373003: Full invalidate <img> on resize (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/percent-size-image-resize-container.html
diff --git a/LayoutTests/fast/repaint/percent-size-image-resize-container.html b/LayoutTests/fast/repaint/percent-size-image-resize-container.html
new file mode 100644
index 0000000000000000000000000000000000000000..2272626ddf2d98c20b6086a993a598a64fe17914
--- /dev/null
+++ b/LayoutTests/fast/repaint/percent-size-image-resize-container.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ var div = document.getElementsByTagName('div')[0];
+ div.style.width = '100px';
+ div.style.height = '200px';
+}
+onload = runRepaintTest;
+</script>
+<style>
+div {
+ position: absolute;
+ top: 50px;
+ left: 0px;
+ width: 150px;
+ height: 150px;
+}
+img {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+}
+</style>
+The percent-sized image should be fully repainted on container's resize. Passes if there is a whole apple after resize.
+<div>
+ <img src="resources/apple.jpg">
+</div>

Powered by Google App Engine
This is Rietveld 408576698