Bug 455105 - IsSolidBorderEdge in nsCSSRendering.cpp ignores foreground borders; r=vladimir, sr=roc (tests)
authorZack Weinberg <zweinberg@mozilla.com>
Thu, 30 Oct 2008 12:57:43 +0330
changeset 21092 d61da77977df6b56ae15ffc52070bc84480249df
parent 21091 7e85c5796676b613e07538cd6ee55df201a4c8ae
child 21093 0c2c2c895e5d1585a6c0a377ebf4e816dec9d232
push id3304
push userehsan.akhgari@gmail.com
push dateThu, 30 Oct 2008 09:28:10 +0000
treeherdermozilla-central@d61da77977df [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvladimir, roc
bugs455105
milestone1.9.1b2pre
Bug 455105 - IsSolidBorderEdge in nsCSSRendering.cpp ignores foreground borders; r=vladimir, sr=roc (tests)
layout/reftests/bugs/455105-1.html
layout/reftests/bugs/455105-2.html
layout/reftests/bugs/455105-ref.html
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/455105-1.html
@@ -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>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/455105-2.html
@@ -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>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/455105-ref.html
@@ -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>