Work around inconsistent browser align handling
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Mon, 19 Sep 2011 15:46:07 -0600
changeset 602 78c3c2c6467f
parent 601 8d721ff655d2
child 603 41ebf20de282
Work around inconsistent browser align handling

Fixes: http://www.w3.org/Bugs/Public/show_bug.cgi?id=14066
conformancetest/data.js
css/reset.css
tests.js
--- a/conformancetest/data.js	Tue Sep 20 14:31:13 2011 -0600
+++ b/conformancetest/data.js	Mon Sep 19 15:46:07 2011 -0600
@@ -18375,6 +18375,14 @@
 	[["stylewithcss","true"],["justifycenter",""]],
 	"<div style=\"text-align:center\"><p>[foo]</p></div><p>extra</p>",
 	{"stylewithcss":[false,false,"",false,true,""],"justifycenter":[false,false,"left",false,true,"center"]}],
+["<quasit align=right><p>[foo]</p></quasit><p>extra",
+	[["stylewithcss","false"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><quasit><p>[foo]</p></quasit></div><p>extra</p>",
+	{"stylewithcss":[false,true,"",false,false,""],"justifycenter":[false,false,"left",false,true,"center"]}],
+["<quasit align=right><p>[foo]</p></quasit><p>extra",
+	[["stylewithcss","true"],["justifycenter",""]],
+	"<div style=\"text-align:center\"><quasit><p>[foo]</p></quasit></div><p>extra</p>",
+	{"stylewithcss":[false,false,"",false,true,""],"justifycenter":[false,false,"left",false,true,"center"]}],
 ["<div align=center>{<div align=left>foo</div>}</div>",
 	[["stylewithcss","false"],["justifycenter",""]],
 	"<div style=\"text-align:center\">{foo}</div>",
@@ -19079,6 +19087,14 @@
 	[["stylewithcss","true"],["justifyfull",""]],
 	"<div style=\"text-align:justify\"><p>[foo]</p></div><p>extra</p>",
 	{"stylewithcss":[false,false,"",false,true,""],"justifyfull":[false,false,"left",false,true,"justify"]}],
+["<quasit align=center><p>[foo]</p></quasit><p>extra",
+	[["stylewithcss","false"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><quasit><p>[foo]</p></quasit></div><p>extra</p>",
+	{"stylewithcss":[false,true,"",false,false,""],"justifyfull":[false,false,"left",false,true,"justify"]}],
+["<quasit align=center><p>[foo]</p></quasit><p>extra",
+	[["stylewithcss","true"],["justifyfull",""]],
+	"<div style=\"text-align:justify\"><quasit><p>[foo]</p></quasit></div><p>extra</p>",
+	{"stylewithcss":[false,false,"",false,true,""],"justifyfull":[false,false,"left",false,true,"justify"]}],
 ["<div style=text-align:start>[foo]</div><p>extra",
 	[["stylewithcss","false"],["justifyfull",""]],
 	"<div style=\"text-align:justify\">[foo]</div><p>extra</p>",
@@ -19719,6 +19735,14 @@
 	[["stylewithcss","true"],["justifyleft",""]],
 	"<p>[foo]</p><p>extra</p>",
 	{"stylewithcss":[false,false,"",false,true,""],"justifyleft":[false,true,"left",false,true,"left"]}],
+["<quasit align=center><p>[foo]</p></quasit><p>extra",
+	[["stylewithcss","false"],["justifyleft",""]],
+	"<quasit><p>[foo]</p></quasit><p>extra</p>",
+	{"stylewithcss":[false,true,"",false,false,""],"justifyleft":[false,true,"left",false,true,"left"]}],
+["<quasit align=center><p>[foo]</p></quasit><p>extra",
+	[["stylewithcss","true"],["justifyleft",""]],
+	"<quasit><p>[foo]</p></quasit><p>extra</p>",
+	{"stylewithcss":[false,false,"",false,true,""],"justifyleft":[false,true,"left",false,true,"left"]}],
 ["<div style=text-align:start>[foo]</div><p>extra",
 	[["stylewithcss","false"],["justifyleft",""]],
 	"[foo]<p>extra</p>",
@@ -20359,6 +20383,14 @@
 	[["stylewithcss","true"],["justifyright",""]],
 	"<div style=\"text-align:right\"><p>[foo]</p></div><p>extra</p>",
 	{"stylewithcss":[false,false,"",false,true,""],"justifyright":[false,false,"left",false,true,"right"]}],
+["<quasit align=center><p>[foo]</p></quasit><p>extra",
+	[["stylewithcss","false"],["justifyright",""]],
+	"<div style=\"text-align:right\"><quasit><p>[foo]</p></quasit></div><p>extra</p>",
+	{"stylewithcss":[false,true,"",false,false,""],"justifyright":[false,false,"left",false,true,"right"]}],
+["<quasit align=center><p>[foo]</p></quasit><p>extra",
+	[["stylewithcss","true"],["justifyright",""]],
+	"<div style=\"text-align:right\"><quasit><p>[foo]</p></quasit></div><p>extra</p>",
+	{"stylewithcss":[false,false,"",false,true,""],"justifyright":[false,false,"left",false,true,"right"]}],
 ["<div style=text-align:start>[foo]</div><p>extra",
 	[["stylewithcss","false"],["justifyright",""]],
 	"<div style=\"text-align:right\">[foo]</div><p>extra</p>",
--- a/css/reset.css	Tue Sep 20 14:31:13 2011 -0600
+++ b/css/reset.css	Mon Sep 19 15:46:07 2011 -0600
@@ -22,3 +22,6 @@
  * This should really be #00e, probably.  See:
  * http://www.w3.org/Bugs/Public/show_bug.cgi?id=13330 */
 :link, :visited { color: blue }
+/* http://www.w3.org/Bugs/Public/show_bug.cgi?id=14066
+ * https://bugs.webkit.org/show_bug.cgi?id=68392 */
+quasit { text-align: inherit }
--- a/tests.js	Tue Sep 20 14:31:13 2011 -0600
+++ b/tests.js	Mon Sep 19 15:46:07 2011 -0600
@@ -2696,8 +2696,7 @@
 
 		'<div align=nonsense><p>[foo]</div><p>extra',
 		'<div style=text-align:inherit><p>[foo]</div><p>extra',
-		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=14066
-		'!<quasit align=right><p>[foo]</p></quasit><p>extra',
+		'<quasit align=right><p>[foo]</p></quasit><p>extra',
 
 		'<div align=center>{<div align=left>foo</div>}</div>',
 		'<div align=left>{<div align=center>foo</div>}</div>',
@@ -2804,8 +2803,7 @@
 
 		'<div align=nonsense><p>[foo]</div><p>extra',
 		'<div style=text-align:inherit><p>[foo]</div><p>extra',
-		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=14066
-		'!<quasit align=center><p>[foo]</p></quasit><p>extra',
+		'<quasit align=center><p>[foo]</p></quasit><p>extra',
 
 		'<div style=text-align:start>[foo]</div><p>extra',
 		'<div style=text-align:end>[foo]</div><p>extra',
@@ -2903,8 +2901,7 @@
 
 		'<div align=nonsense><p>[foo]</div><p>extra',
 		'<div style=text-align:inherit><p>[foo]</div><p>extra',
-		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=14066
-		'!<quasit align=center><p>[foo]</p></quasit><p>extra',
+		'<quasit align=center><p>[foo]</p></quasit><p>extra',
 
 		'<div style=text-align:start>[foo]</div><p>extra',
 		'<div style=text-align:end>[foo]</div><p>extra',
@@ -3002,8 +2999,7 @@
 
 		'<div align=nonsense><p>[foo]</div><p>extra',
 		'<div style=text-align:inherit><p>[foo]</div><p>extra',
-		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=14066
-		'!<quasit align=center><p>[foo]</p></quasit><p>extra',
+		'<quasit align=center><p>[foo]</p></quasit><p>extra',
 
 		'<div style=text-align:start>[foo]</div><p>extra',
 		'<div style=text-align:end>[foo]</div><p>extra',