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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/scrollbar.html

Issue 2843883002: Remove, or rewrite if necessary, tests which use /deep/ or ::shadow (Closed)
Patch Set: rev Created 3 years, 8 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/fast/dom/shadow/scrollbar.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/scrollbar.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/scrollbar.html
index eed5b10f69e00bd533773be69507199d2579e706..04b677e07bac80c4bb64c56b1f02743cc4ce65f1 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/scrollbar.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/scrollbar.html
@@ -12,24 +12,28 @@
width: 50px;
}
-* /deep/ #div1 {
- position: fixed;
- overflow: scroll;
- width: 80px;
- height: 80px;
- background-color: red;
+</style>
+<style id="shadow-style">
+#div1 {
+ position: fixed;
+ overflow: scroll;
+ width: 80px;
+ height: 80px;
+ background-color: red;
}
-* /deep/ #div1::-webkit-scrollbar {
- width: 20px;
+#div1::-webkit-scrollbar {
+ width: 20px;
}
</style>
<div id="host"></div>
+
<script>
var shadowRoot = host.createShadowRoot();
shadowRoot.innerHTML = '<div id="div1">some long text showing scrollbar</div>';
+shadowRoot.appendChild(document.querySelector('#shadow-style'));
</script>
</body></html>

Powered by Google App Engine
This is Rietveld 408576698