Bug 455105 - IsSolidBorderEdge in nsCSSRendering.cpp ignores foreground borders; r=vladimir, sr=roc (tests)

This commit is contained in:
Zack Weinberg 2008-10-30 12:57:43 +03:30
parent 679447bf82
commit c68fc626ab
3 changed files with 76 additions and 0 deletions

View File

@ -0,0 +1,28 @@
<!doctype html>
<html><head><title>455105-1</title>
<style>
div#below {
position: absolute;
top: 10px; left: 10px;
width: 40px;
height: 40px;
border: 10px solid red;
background-color: red;
}
div#above {
position: absolute;
top: 10px; left: 10px;
width: 40px;
height: 40px;
border-width: 10px;
border-style: solid;
border-color: -moz-initial;
color: rgba(0,0,0,0);
background-image: url("data:image/gif;base64,\
R0lGODlhAQABAPAAAACAAAAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==");
}
</style>
</head><body>
<div id="below"></div>
<div id="above"></div>
</body></html>

View File

@ -0,0 +1,31 @@
<!doctype html>
<html><head><title>455105-2</title>
<style>
div#below {
position: absolute;
top: 10px; left: 10px;
width: 40px;
height: 40px;
border: 10px solid red;
background-color: red;
}
div#above {
position: absolute;
top: 10px; left: 10px;
width: 40px;
height: 40px;
border-width: 10px;
border-style: solid;
border-color: green;
/* one pixel green */
background-image: url("data:image/gif;base64,\
R0lGODlhAQABAPAAAACAAAAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==");
/* three by three pixel transparent - drawn *instead of* regular border */
-moz-border-image: url("data:image/gif;base64,\
R0lGODlhAwADAPAAAAAAAAAAACH5BAEAAAAALAAAAAADAAMAAAIDhH8FADs=") 1 1;
}
</style>
</head><body>
<div id="below"></div>
<div id="above"></div>
</body></html>

View File

@ -0,0 +1,17 @@
<!doctype html>
<html><head><title>455105 ref</title>
<style>
div {
position: absolute;
top: 10px; left: 10px;
width: 40px;
height: 40px;
border-width: 10px;
border-style: solid;
border-color: green;
background-color: green;
}
</style>
</head><body>
<div></div>
</body></html>