Bug 616516 - Try to fix few pixel intermittent reftest failure by using crispEdge drawing. r=dholbert

This commit is contained in:
Robert Longson 2011-05-14 14:54:13 +01:00
parent 551f599320
commit 07c6b60005
2 changed files with 5 additions and 3 deletions

View File

@ -1,8 +1,9 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:html="http://www.w3.org/1999/xhtml" height="500"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
xmlns:html="http://www.w3.org/1999/xhtml" height="500"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
shape-rendering="crispEdges">
<foreignObject x="200" y="180" width="100" height="50" >
<html:button id="x">New text</html:button>

Before

Width:  |  Height:  |  Size: 592 B

After

Width:  |  Height:  |  Size: 626 B

View File

@ -4,7 +4,8 @@
xmlns:html="http://www.w3.org/1999/xhtml" height="500"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="document.documentElement.getBoundingClientRect();
document.getElementById('x').textContent = 'New text'">
document.getElementById('x').textContent = 'New text'"
shape-rendering="crispEdges">
<foreignObject x="200" y="180" width="100" height="50" >
<html:button id="x">Old long long long text</html:button>

Before

Width:  |  Height:  |  Size: 733 B

After

Width:  |  Height:  |  Size: 768 B