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

Unified Diff: LayoutTests/fast/repaint/absolute-display-block-to-none.html

Issue 684633006: Reattach whitespace siblings only when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 1 month 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/absolute-display-block-to-none-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/repaint/absolute-display-block-to-none.html
diff --git a/LayoutTests/fast/repaint/absolute-display-block-to-none.html b/LayoutTests/fast/repaint/absolute-display-block-to-none.html
new file mode 100644
index 0000000000000000000000000000000000000000..2d0fac312ab453d1e603e68de9fbccd76407db07
--- /dev/null
+++ b/LayoutTests/fast/repaint/absolute-display-block-to-none.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ document.getElementById('absolute').style.display = 'none';
+}
+onload = runRepaintTest;
+</script>
+When an absolute positioned element is set display:none, we should not invalidate the whole body.
+<div id="absolute" style="position: absolute; width: 100px; height: 100px; top: 100px; left: 100px; background-color: red"></div>
« no previous file with comments | « no previous file | LayoutTests/fast/repaint/absolute-display-block-to-none-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698