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

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

Issue 458373003: Full invalidate <img> on resize (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline fast/repaint/list-marker-2.html 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
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/image-resize-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/repaint/image-resize.html
diff --git a/LayoutTests/fast/repaint/image-resize.html b/LayoutTests/fast/repaint/image-resize.html
new file mode 100644
index 0000000000000000000000000000000000000000..94bafaca3a426b9558c2924406288c245c114645
--- /dev/null
+++ b/LayoutTests/fast/repaint/image-resize.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ var img = document.getElementsByTagName('img')[0];
+ img.style.width = '100px';
+ img.style.height = '200px';
+}
+onload = runRepaintTest;
+</script>
+<style>
+img {
+ position: absolute;
+ top: 50px;
+ left: 0px;
+ width: 150px;
+ height: 150px;
+}
+</style>
+The image should be fully repainted on resize. Passes if there is a whole apple after resize.
+<img src="resources/apple.jpg">
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/image-resize-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698