Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html b/third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..eb20498be03149369b74bc0c5d734454047799c4 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html |
| @@ -0,0 +1,19 @@ |
| +<!DOCTYPE html> |
| +<style> |
| +html:first-letter { color: papayawhip; } |
| +</style> |
| +<script> |
| +function boom() { |
| + if (window.testRunner) |
| + testRunner.dumpAsText(); |
| + |
| + // Trigger a full-document style recalc. |
| + document.appendChild(document.createElement("style")); |
|
esprehn
2016/02/18 00:19:39
does this actually trigger a full recalc? I though
|
| + // Force the style to update without running the rest of the lifecycle. |
| + document.querySelector("embed").align; |
| +} |
| +</script> |
| +<body onload="boom()"> |
| +<embed type="html"> |
| +Test passes if no crash. |
| + |