Bug 398332 - Crash tests.

This commit is contained in:
Martijn Wargers 2013-02-23 11:38:13 +01:00
parent 9ee59f510d
commit f7c4526b9f
4 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<html><head>
<title>Testcase bug - Crash [@ nsHTMLReflowState::GetNearestContainingBlock] with display: -moz-box, generated content, positioning and fieldset</title>
<style>
small::before { content: "m m";}
strike::before { content: "m m";}
</style>
</head>
<body>
<div style="display: -moz-box;">
<strike style="overflow: -moz-hidden-unscrollable; position: absolute;"></strike>
<fieldset style="position: relative;">
<strike style="overflow: -moz-hidden-unscrollable; position: absolute;"><small style="position: relative;">
<span style="position: absolute;"></span>
</small>
</strike>
</fieldset>
</div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<html>
<head>
<script>
function removestyles(i){
document.getElementsByTagName('*')[5].removeAttribute('style');
document.body.offsetHeight;
document.getElementsByTagName('*')[6].removeAttribute('style');
document.body.offsetHeight;
document.getElementsByTagName('*')[7].removeAttribute('style');
}
setTimeout(removestyles,300);
</script>
</head>
<body>
<div style="position: relative; width: 500px;">
<span style="position: absolute; -moz-column-count: 2;">
<span style=" position: absolute;">
<span style=" display: inline-block; ">m</span>
<input>
<input style="position: fixed;">m
</span>
</span>
</div>
</body>
</html>

View File

@ -0,0 +1,4 @@
<marquee style="position: relative; right: 20%;">"Ë”Öqü®Û;<span style="position: relative; word-spacing: -100px;"><span style="position: absolute;">
<style>span::before { content:"before textbefore textbefore textbefore textbefore textbefore text"; }</style>

View File

@ -163,6 +163,9 @@ load 398181-1.html
load 398181-2.html
load 398322-1.html
load 398322-2.html
load 398332-1.html
load 398332-2.html
asserts(2) load 398332-3.html # bug 436123 and bug 457397
load 399407-1.xhtml
load 399412-1.html
load 399843-1.html