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

Side by Side Diff: LayoutTests/fast/table/tr-min-content-crash.html

Issue 1160463004: Check if length isSpecified before accessing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2 <style>
3 .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.
4 </style>
5
6 <p>Test passes if it does not CRASH in debug.</p>
7
8 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
11
12 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.
13 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.
14
15 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.
16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698