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

Unified Diff: LayoutTests/fast/html/imports/custom-element-style-block.html

Issue 202813002: [HTML Import] Let script block by pending resources created by lifecycle callback (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Re-landing with another fix Created 6 years, 9 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/html/imports/resources/custom-element-style.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/html/imports/custom-element-style-block.html
diff --git a/LayoutTests/fast/html/imports/custom-element-style-block.html b/LayoutTests/fast/html/imports/custom-element-style-block.html
new file mode 100644
index 0000000000000000000000000000000000000000..9b8296cb52d2cefaaddfd3bf578b3fc1c8705abf
--- /dev/null
+++ b/LayoutTests/fast/html/imports/custom-element-style-block.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<link rel="import" href="resources/custom-element-style.html">
+</head>
+<body>
+<x-test></x-test>
+<script>
+test(function(){
+ var x = document.querySelector('x-test');
+ var port = x.shadowRoot.querySelector('style').sheet.cssRules[0];
+ assert_true(port.styleSheet instanceof StyleSheet);
+}, "The @import sytle in custom element shadow DOM blocks following script element.");
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/html/imports/resources/custom-element-style.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698