mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
layout, submodules, test: Stop crashing on Acid1
This commit is contained in:
parent
64fb0fbe60
commit
b0f185412d
3 changed files with 186 additions and 3 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 7458a7bbb95fab0245f82c1b4b7e93779a2ab5e3
|
Subproject commit 6f7633390e76a08ee2bb43fafdbe8ba5d0890896
|
|
@ -490,7 +490,7 @@ impl RenderBox : RenderBoxMethods {
|
||||||
list.append_item(~DisplayItem::new_Border(&bounds, border_width, color));
|
list.append_item(~DisplayItem::new_Border(&bounds, border_width, color));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
fail ~"unimplemented border widths";
|
warn!("ignoring unimplemented border widths");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
(CSSBorderWidthMedium,
|
(CSSBorderWidthMedium,
|
||||||
|
@ -500,7 +500,7 @@ impl RenderBox : RenderBoxMethods {
|
||||||
// FIXME: This seems to be the default for non-root nodes. For now we'll ignore it
|
// FIXME: This seems to be the default for non-root nodes. For now we'll ignore it
|
||||||
warn!("ignoring medium border widths");
|
warn!("ignoring medium border widths");
|
||||||
}
|
}
|
||||||
_ => fail ~"unimplemented border widths"
|
_ => warn!("ignoring unimplemented border widths")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
183
src/test/acid1.html
Normal file
183
src/test/acid1.html
Normal file
|
@ -0,0 +1,183 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
|
<html><head>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
|
||||||
|
<title>
|
||||||
|
display/box/float/clear test
|
||||||
|
</title>
|
||||||
|
<style type="text/css">
|
||||||
|
/* last modified: 1 Dec 98 */
|
||||||
|
|
||||||
|
html {
|
||||||
|
font: 10px/1 Verdana, sans-serif;
|
||||||
|
background-color: blue;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 1.5em;
|
||||||
|
border: .5em solid black;
|
||||||
|
padding: 0;
|
||||||
|
width: 48em;
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
dl {
|
||||||
|
margin: 0;
|
||||||
|
border: 0;
|
||||||
|
padding: .5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
dt {
|
||||||
|
background-color: rgb(204,0,0);
|
||||||
|
margin: 0;
|
||||||
|
padding: 1em;
|
||||||
|
width: 10.638%; /* refers to parent element's width of 47em. = 5em or 50px */
|
||||||
|
height: 28em;
|
||||||
|
border: .5em solid black;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
dd {
|
||||||
|
float: right;
|
||||||
|
margin: 0 0 0 1em;
|
||||||
|
border: 1em solid black;
|
||||||
|
padding: 1em;
|
||||||
|
width: 34em;
|
||||||
|
height: 27em;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
margin: 0;
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
display: block; /* i.e., suppress marker */
|
||||||
|
color: black;
|
||||||
|
height: 9em;
|
||||||
|
width: 5em;
|
||||||
|
margin: 0;
|
||||||
|
border: .5em solid black;
|
||||||
|
padding: 1em;
|
||||||
|
float: left;
|
||||||
|
background-color: #FC0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#bar {
|
||||||
|
background-color: black;
|
||||||
|
color: white;
|
||||||
|
width: 41.17%; /* = 14em */
|
||||||
|
border: 0;
|
||||||
|
margin: 0 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#baz {
|
||||||
|
margin: 1em 0;
|
||||||
|
border: 0;
|
||||||
|
padding: 1em;
|
||||||
|
width: 10em;
|
||||||
|
height: 10em;
|
||||||
|
background-color: black;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
form {
|
||||||
|
margin: 0;
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
form p {
|
||||||
|
line-height: 1.9;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
margin: 1em 1em 1em 2em;
|
||||||
|
border-width: 1em 1.5em 2em .5em;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: black;
|
||||||
|
padding: 1em 0;
|
||||||
|
width: 5em;
|
||||||
|
height: 9em;
|
||||||
|
float: left;
|
||||||
|
background-color: #FC0;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
address {
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
background-color: black;
|
||||||
|
color: white;
|
||||||
|
float: left;
|
||||||
|
margin: 1em 0;
|
||||||
|
border: 0;
|
||||||
|
padding: 1em;
|
||||||
|
width: 10em;
|
||||||
|
height: 10em;
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<dl>
|
||||||
|
<dt>
|
||||||
|
toggle
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
the way
|
||||||
|
</li>
|
||||||
|
<li id="bar">
|
||||||
|
<p>
|
||||||
|
the world ends
|
||||||
|
</p>
|
||||||
|
<form action="./" method="get">
|
||||||
|
<p>
|
||||||
|
bang
|
||||||
|
<input name="foo" value="off" type="radio">
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
whimper
|
||||||
|
<input name="foo2" value="on" type="radio">
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
i grow old
|
||||||
|
</li>
|
||||||
|
<li id="baz">
|
||||||
|
pluot?
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<blockquote>
|
||||||
|
<address>
|
||||||
|
bar maids,
|
||||||
|
</address>
|
||||||
|
</blockquote>
|
||||||
|
<h1>
|
||||||
|
sing to me, erbarme dich
|
||||||
|
</h1>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<p style="color: black; font-size: 1em; line-height: 1.3em; clear: both">
|
||||||
|
This is a nonsensical document, but syntactically valid HTML 4.0. All
|
||||||
|
100%-conformant CSS1 agents should be able to render the document
|
||||||
|
elements above this paragraph indistinguishably (to the pixel) from this
|
||||||
|
|
||||||
|
<a href="http://www.w3.org/Style/CSS/Test/CSS1/current/sec5526c.gif">reference rendering,</a>
|
||||||
|
(except font rasterization and form widgets). All discrepancies
|
||||||
|
should be traceable to CSS1 implementation shortcomings. Once you have
|
||||||
|
finished evaluating this test, you can return to the <a href="http://www.w3.org/Style/CSS/Test/CSS1/current/sec5526c.htm">parent page</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
</body></html>
|
Loading…
Add table
Add a link
Reference in a new issue