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

Unified Diff: LayoutTests/fast/overflow/resize-inherit.html

Issue 639293008: Make CSS resize property non-inherited. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/overflow/resize-inherit.html
diff --git a/LayoutTests/fast/overflow/resize-inherit.html b/LayoutTests/fast/overflow/resize-inherit.html
new file mode 100644
index 0000000000000000000000000000000000000000..0ca28e7a231b48404a268b1b8167ddcd379118a9
--- /dev/null
+++ b/LayoutTests/fast/overflow/resize-inherit.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<style>
+.overflow {
+ overflow: scroll;
+ width: 200px;
+ height: 200px;
+}
+.resize {
+ resize: both;
+}
+.resize-inherit {
+ resize: both;
Timothy Loh 2014/10/21 15:14:00 Did you mean resize: inherit;?
rune 2014/10/21 15:26:04 Done.
+}
+</style>
+<div class="overflow resize">
+ <div class="overflow no-resize"></div>
+ <div class="overflow resize-inherit"></div>
+</div>
+<script>
+description("CSS resize property is inherited:no");
+
+shouldBe("getComputedStyle(document.querySelector('.overflow.resize')).resize", "'both'");
+shouldBe("getComputedStyle(document.querySelector('.overflow.no-resize')).resize", "'none'");
+shouldBe("getComputedStyle(document.querySelector('.overflow.resize-inherit')).resize", "'both'");
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/overflow/resize-inherit-expected.txt » ('j') | Source/core/css/CSSProperties.in » ('J')

Powered by Google App Engine
This is Rietveld 408576698