Skip to content

Instantly share code, notes, and snippets.

@Gankra
Created April 25, 2018 03:12
Show Gist options
  • Save Gankra/157078e5168465ca6223da33ea9cf90e to your computer and use it in GitHub Desktop.
Save Gankra/157078e5168465ca6223da33ea9cf90e to your computer and use it in GitHub Desktop.
From d9b0ed8270a907c0c8703ffc9d11ef5720eeac38 Mon Sep 17 00:00:00 2001
From: Alexis Beingessner <[email protected]>
Date: Tue, 24 Apr 2018 23:11:45 -0400
Subject: [PATCH] Bug 1430869 - add reftest for border collapse and captions.
r?mstange
MozReview-Commit-ID: JBN8p3j5rVJ
---
layout/reftests/bugs/1430869-ref.html | 37 ++++++++++++++++++++++++++++++++
layout/reftests/bugs/1430869.html | 40 +++++++++++++++++++++++++++++++++++
layout/reftests/bugs/reftest.list | 1 +
3 files changed, 78 insertions(+)
create mode 100644 layout/reftests/bugs/1430869-ref.html
create mode 100644 layout/reftests/bugs/1430869.html
diff --git a/layout/reftests/bugs/1430869-ref.html b/layout/reftests/bugs/1430869-ref.html
new file mode 100644
index 000000000000..cc7defbb52f4
--- /dev/null
+++ b/layout/reftests/bugs/1430869-ref.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html><head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8">
+ <meta charset="UTF-8">
+ <title>Webrender table caption + border-collapse test</title>
+ <style>
+ table, th, td {
+ border: 1px solid;
+ border-collapse: collapse;
+ }
+ </style>
+</head>
+<body>
+
+<div>
+<span>A<br>B</span>
+<table>
+<tbody><tr>
+<td>row 1</td>
+</tr>
+<tr>
+<td>row 2</td>
+</tr>
+<tr>
+<td>row 3</td>
+</tr>
+<tr>
+<td>row 4</td>
+</tr>
+<tr>
+<td>row 5</td>
+</tr>
+</tbody></table>
+</div>
+
+
+</body></html>
diff --git a/layout/reftests/bugs/1430869.html b/layout/reftests/bugs/1430869.html
new file mode 100644
index 000000000000..13842fe32397
--- /dev/null
+++ b/layout/reftests/bugs/1430869.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html><head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8">
+ <meta charset="UTF-8">
+ <title>Webrender table caption + border-collapse test</title>
+ <style>
+ table, th, td {
+ border: 1px solid;
+ border-collapse: collapse;
+ }
+ caption {
+ text-align: left;
+ }
+ </style>
+</head>
+<body>
+
+<div>
+<table>
+<caption>A<br>B</caption>
+<tbody><tr>
+<td>row 1</td>
+</tr>
+<tr>
+<td>row 2</td>
+</tr>
+<tr>
+<td>row 3</td>
+</tr>
+<tr>
+<td>row 4</td>
+</tr>
+<tr>
+<td>row 5</td>
+</tr>
+</tbody></table>
+</div>
+
+
+</body></html>
diff --git a/layout/reftests/bugs/reftest.list b/layout/reftests/bugs/reftest.list
index aafc0a48c8ab..7578a9353db4 100644
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -2062,6 +2062,7 @@ test-pref(font.size.systemFontScale,200) == 1412743.html 1412743-ref.html
== 1424798-1.html 1424798-ref.html
fuzzy(74,2234) random-if(webrender) == 1425243-1.html 1425243-1-ref.html
fuzzy-if(Android,66,574) fuzzy-if(d2d,89,777) fuzzy-if(!Android&&!d2d,1,31219) == 1425243-2.html 1425243-2-ref.html
+== 1430869.html 1430869-ref.html
== 1432541.html 1432541-ref.html
pref(layout.css.moz-document.url-prefix-hack.enabled,true) == 1446470.html 1035091-ref.html
pref(layout.css.moz-document.url-prefix-hack.enabled,false) == 1446470-2.html 1035091-ref.html
--
2.15.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment