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

Unified Diff: third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-not-inherited-by-iframe.html

Issue 1340643004: Stop propagating customscrollbar styles across iframe boundaries. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed review comments Created 4 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
Index: third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-not-inherited-by-iframe.html
diff --git a/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-not-inherited-by-iframe.html b/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-not-inherited-by-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..2239ebedc5ebc679229d3beac4a8dbe2037a23f3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/scrollbars/custom-scrollbar-not-inherited-by-iframe.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<script src="../resources/js-test.js"></script>
+<style>
+::-webkit-scrollbar {
+ width: 150px;
+ height: 150px;
+}
+iframe {
+ width: 300px;
+ border: 0;
+ outline: 1px solid blue;
+}
+</style>
+<iframe srcdoc="
+ <style>
+ body { margin: 0; padding: 10px; height: 500px; font: 10pt monospace; }
+ </style>
+ "></iframe>
+<script>
+onload = function() {
+ var body = document.querySelector("iframe").contentDocument.body;
+ shouldBe("285", String(body.clientWidth));
+};
+</script>

Powered by Google App Engine
This is Rietveld 408576698