Bug 1130231 - Reftest for left/right padding on button contents with direction=rtl. r=smontagu, a=lmandel
☠☠ backed out by f8df147bfc8a ☠ ☠
authorJonathan Kew <jkew@mozilla.com>
Mon, 09 Feb 2015 14:40:25 +0000
changeset 249731 70ec858b085e36baf849f91cdcb2e28f970c41be
parent 249730 ae9e003dc9c41b69df75b5b0e6084f9e664d0c60
child 249732 f8df147bfc8a92b58f6aff470962f112b7facc12
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmontagu, lmandel
bugs1130231
milestone37.0a2
Bug 1130231 - Reftest for left/right padding on button contents with direction=rtl. r=smontagu, a=lmandel
layout/reftests/bugs/1130231-1-button-padding-rtl-ref.html
layout/reftests/bugs/1130231-1-button-padding-rtl.html
layout/reftests/bugs/1130231-2-button-padding-rtl-ref.html
layout/reftests/bugs/1130231-2-button-padding-rtl.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1130231-1-button-padding-rtl-ref.html
@@ -0,0 +1,32 @@
+<!doctype html>
+<html lang="en">
+<head>
+	<meta charset="utf-8">
+	<title>Bug 1130231</title>
+	<style type="text/css">
+	div {
+	    width: 300px;
+	    height: 50px;
+	    border: 1px solid blue;
+	    margin: 10px;
+	    padding: 2px;
+	}
+	.inner {
+		padding-left: 100px;
+		padding-right: 50px;
+		border: 5px solid black;
+		border-left: 20px solid red;
+		border-right: 10px solid green;
+	}
+	</style>
+</head>
+<html>
+<body>
+<div dir=rtl style="text-align:left">
+  <button class="inner">|button|</button>
+</div>
+<div style="text-align:right">
+  <button class="inner">|button|</button>
+</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1130231-1-button-padding-rtl.html
@@ -0,0 +1,32 @@
+<!doctype html>
+<html lang="en">
+<head>
+	<meta charset="utf-8">
+	<title>Bug 1130231</title>
+	<style type="text/css">
+	div {
+	    width: 300px;
+	    height: 50px;
+	    border: 1px solid blue;
+	    margin: 10px;
+	    padding: 2px;
+	}
+	.inner {
+		padding-left: 100px;
+		padding-right: 50px;
+		border: 5px solid black;
+		border-left: 20px solid red;
+		border-right: 10px solid green;
+	}
+	</style>
+</head>
+<html>
+<body>
+<div>
+  <button class="inner">|button|</button>
+</div>
+<div dir=rtl>
+  <button class="inner">|button|</button>
+</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1130231-2-button-padding-rtl-ref.html
@@ -0,0 +1,36 @@
+<!doctype html>
+<html lang="en">
+<head>
+	<meta charset="utf-8">
+	<title>Bug 1130231</title>
+	<style type="text/css">
+	div {
+	    width: 300px;
+	    height: 50px;
+	    border: 1px solid blue;
+	    margin: 10px;
+	    padding: 2px;
+	}
+	.inner {
+		padding-left: 100px;
+		padding-right: 50px;
+		border: 5px solid black;
+		border-left: 20px solid red;
+		border-right: 10px solid green;
+	}
+	.right {
+		padding-right: 100px;
+		padding-left: 50px;
+	}
+	</style>
+</head>
+<html>
+<body>
+<div>
+  <button class="inner">|button|</button>
+</div>
+<div style="text-align:right">
+  <button class="inner right">|button|</button>
+</div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1130231-2-button-padding-rtl.html
@@ -0,0 +1,32 @@
+<!doctype html>
+<html lang="en">
+<head>
+	<meta charset="utf-8">
+	<title>Bug 1130231</title>
+	<style type="text/css">
+	div {
+	    width: 300px;
+	    height: 50px;
+	    border: 1px solid blue;
+	    margin: 10px;
+	    padding: 2px;
+	}
+	.inner {
+		-moz-padding-start: 100px;
+		-moz-padding-end: 50px;
+		border: 5px solid black;
+		border-left: 20px solid red;
+		border-right: 10px solid green;
+	}
+	</style>
+</head>
+<html>
+<body>
+<div>
+  <button class="inner">|button|</button>
+</div>
+<div dir=rtl>
+  <button class="inner">|button|</button>
+</div>
+</body>
+</html>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1852,8 +1852,10 @@ test-pref(layout.testing.overlay-scrollb
 fuzzy-if(winWidget&&!layersGPUAccelerated,1,31) fuzzy-if(B2G,128,75) == 1081185-1.html 1081185-1-ref.html   # fuzzy with event-regions, see bug 1107843
 == 1097437-1.html 1097437-1-ref.html
 == 1103258-1.html 1103258-1-ref.html # assertion crash test with layers culling test
 == 1105137-1.html 1105137-1-ref.html
 fuzzy-if(d2d,36,304) HTTP(..) == 1116480-1-fakeitalic-overflow.html 1116480-1-fakeitalic-overflow-ref.html
 == 1111753-1.html about:blank
 == 1119117-1a.html 1119117-1-ref.html
 == 1119117-1b.html 1119117-1-ref.html
+== 1130231-1-button-padding-rtl.html 1130231-1-button-padding-rtl-ref.html
+== 1130231-2-button-padding-rtl.html 1130231-2-button-padding-rtl-ref.html