Chromium Code Reviews| Index: LayoutTests/fast/css/shadow-style-removed-out-of-document.html |
| diff --git a/LayoutTests/fast/css/shadow-style-removed-out-of-document.html b/LayoutTests/fast/css/shadow-style-removed-out-of-document.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b52a2dcfd42086664471d9d4dbd6ec10e0c77ee7 |
| --- /dev/null |
| +++ b/LayoutTests/fast/css/shadow-style-removed-out-of-document.html |
| @@ -0,0 +1,18 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
|
tasak
2014/06/10 08:51:26
We don't need <html>, <head> and <body> if this te
kochi
2014/06/10 09:09:05
Done.
<!DOCTYPE> removed too.
|
| +<script src="../../resources/js-test.js"></script> |
| +<script> |
| +var div = document.createElement('div'); |
| +var root = div.createShadowRoot(); |
| +root.innerHTML = '<style>div { color: green; }</style><div>Hello world</div>'; |
| +// Remove style element before its shadow root is attached to document. |
| +root.removeChild(root.firstChild); |
| +delete root; |
| +delete div; |
|
tasak
2014/06/10 08:51:26
root = null and div = null?
However, do we need "
kochi
2014/06/10 09:09:05
I made sure line 10 (root.removeChild()) only is e
|
| +</script> |
| +</head> |
| +<body> |
| +Hello shadow style |
| +</body> |
| +</html> |