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

Unified Diff: LayoutTests/fast/box-shadow/shadow-box-resize.html

Issue 347393007: Fix shadow repaint issue in vertical-rl mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix bug first. Refactor later. Created 6 years, 6 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/box-shadow/shadow-box-resize-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/box-shadow/shadow-box-resize.html
diff --git a/LayoutTests/fast/box-shadow/shadow-box-resize.html b/LayoutTests/fast/box-shadow/shadow-box-resize.html
new file mode 100644
index 0000000000000000000000000000000000000000..6d781c480c42be4aa046ddfd51de2c5cdbbdf7a7
--- /dev/null
+++ b/LayoutTests/fast/box-shadow/shadow-box-resize.html
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<script src="../repaint/resources/text-based-repaint.js"></script>
+<script>
+function repaintTest()
+{
+ document.getElementById('target1').style.width = '150px';
+ document.getElementById('target2').style.width = '50px';
+ document.getElementById('target3').style.height = '150px';
+ document.getElementById('target4').style.height = '50px';
+}
+window.onload = runRepaintTest;
+</script>
+<style>
+body {
+ margin: 0;
+}
+div {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ background-color: green;
+ box-shadow: 40px 20px black;
+}
+#target1 {
+ top: 100px;
+ left: 100px;
+}
+#target2 {
+ top: 100px;
+ left: 300px;
+}
+#target3 {
+ top: 300px;
+ left: 100px;
+}
+#target4 {
+ top: 300px;
+ left: 300px;
+}
+</style>
+<div id="target1"></div>
+<div id="target2"></div>
+<div id="target3"></div>
+<div id="target4"></div>
« no previous file with comments | « no previous file | LayoutTests/fast/box-shadow/shadow-box-resize-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698