Chromium Code Reviews| Index: LayoutTests/fast/table/tr-min-content-crash.html |
| diff --git a/LayoutTests/fast/table/tr-min-content-crash.html b/LayoutTests/fast/table/tr-min-content-crash.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2a8316f7301c24b11d2ef9d2f5762f7cd6869cd5 |
| --- /dev/null |
| +++ b/LayoutTests/fast/table/tr-min-content-crash.html |
| @@ -0,0 +1,16 @@ |
| +<!doctype html> |
| +<style> |
| +.min { height: -webkit-min-content; } |
|
Julien - ping for review
2015/05/26 16:06:37
min-content would also work (and it's not prefixed
dsinclair
2015/05/27 15:20:06
The test does not crash if I use min-content.
|
| +</style> |
| + |
| +<p>Test passes if it does not CRASH in debug.</p> |
| + |
| +<script> |
| +if (window.testRunner) |
| + testRunner.dumpAsText(); |
| + |
| +tr = document.createElementNS("http://www.w3.org/1999/xhtml", "tr"); |
|
Julien - ping for review
2015/05/26 16:06:37
No need for NameSpace here, createElement should w
dsinclair
2015/05/27 15:20:06
Done.
|
| +tr.setAttribute("class", "min"); |
|
Julien - ping for review
2015/05/26 16:06:37
tr.style.height = "-webkit-min-content"; (eliminat
dsinclair
2015/05/27 15:20:06
Done.
|
| + |
| +document.documentElement.appendChild(tr); |
|
Julien - ping for review
2015/05/26 16:06:37
I really think we should just have the element alr
dsinclair
2015/05/27 15:20:06
Done.
|
| +</script> |