Bug 1229979 - (Part 2) Update reference of test case. draft
authorKuoE0 <kuoe0.tw@gmail.com>
Thu, 07 Sep 2017 11:00:11 +0800
changeset 662255 261f6fd5e9de424f7e4f626768d6b1996a2332e5
parent 662254 298adebec1da020fac27952c8e73c20bcb1fcb86
child 730801 afc294e1b5680ffa9cb01dd8087048862fd605a9
push id79011
push userbmo:kuoe0@mozilla.com
push dateMon, 11 Sep 2017 09:38:12 +0000
bugs1229979
milestone57.0a1
Bug 1229979 - (Part 2) Update reference of test case. MozReview-Commit-ID: CFChebe4JLP
layout/reftests/text-shadow/decorations-multiple-zorder-ref.html
--- a/layout/reftests/text-shadow/decorations-multiple-zorder-ref.html
+++ b/layout/reftests/text-shadow/decorations-multiple-zorder-ref.html
@@ -1,20 +1,29 @@
 <!DOCTYPE HTML>
 
 <!-- Shadows -->
 <!-- Blue underline/text -->
-<div style="position: absolute; top: 22px; left: 22px; color: blue; text-decoration: underline;"><span style="color: rgba(0, 0, 0, 0);">testforquirks</span></div>
-<div style="position: absolute; top: 22px; left: 22px;"><span style="color: blue;">test</span></div>
+<div style="position: absolute; top: 22px; left: 22px;"><span style="color: blue; text-decoration: underline">test</span></div>
 <!-- Red overline/text -->
-<div style="position: absolute; top: 22px; left: 22px; color: rgba(0, 0, 0, 0);">test<span style="text-decoration: overline; color: red;"><span style="color: rgba(0, 0, 0, 0);">forquirks</span></span></div>
-<div style="position: absolute; top: 22px; left: 22px;"><span style="color: rgba(0, 0, 0, 0);">test</span><span style="color: red;">for</span></div>
+<!--
+There are some additional pixels appearing when two red texts are overlap. We
+use transparent color for the first one to prevent the situation and the failure 
+of reftest.
+-->
+<div style="position: absolute; top: 22px; left: 22px;"><span style="color: rgba(0, 0, 0, 0);">test</span><span style="color: transparent; text-decoration: red underline;">for</span></div>
+<div style="position: absolute; top: 22px; left: 22px;"><span style="color: rgba(0, 0, 0, 0);">test</span><span style="color: red; text-decoration: overline;">for</span></div>
 <!-- Green text/underline -->
-<div style="position: absolute; top: 22px; left: 22px;"><span style="color: rgba(0, 0, 0, 0);">testfor</span><span style="text-decoration: underline; color: green;"><span style="color: rgba(0, 0, 0, 0);">quirks</span></span></div>
-<div style="position: absolute; top: 22px; left: 22px;"><span style="color: rgba(0, 0, 0, 0);">testfor</span><span style="color: green;">quirks</span></div>
+<!--
+There are some additional pixels appearing when two red texts are overlap. We
+use transparent color for the first one to prevent the situation and the failure 
+of reftest.
+-->
+<div style="position: absolute; top: 22px; left: 22px;"><span style="color: rgba(0, 0, 0, 0);">testfor</span><span style="text-decoration: green underline; color: transparent;">quirks</span></div>
+<div style="position: absolute; top: 22px; left: 22px;"><span style="color: rgba(0, 0, 0, 0);">testfor</span><span style="text-decoration: overline; color: green;">quirks</span></div>
 
 <!-- "Real" text -->
 <!-- Blue underline/text -->
 <div style="position: absolute; top: 20px; left: 20px; color: blue; text-decoration: underline;"><span style="color: rgba(0, 0, 0, 0);">testforquirks</span></div>
 <div style="position: absolute; top: 20px; left: 20px;"><span style="color: blue;">test</span></div>
 <!-- Red overline/text -->
 <div style="position: absolute; top: 20px; left: 20px; color: rgba(0, 0, 0, 0);">test<span style="text-decoration: overline; color: red;"><span style="color: rgba(0, 0, 0, 0);">forquirks</span></span></div>
 <div style="position: absolute; top: 20px; left: 20px;"><span style="color: rgba(0, 0, 0, 0);">test</span><span style="color: red;">for</span></div>