Bug 1386848 - stylo: Add a reftest for transform: translate() r=xidorn

MozReview-Commit-ID: F2XSsSc7w5n

--HG--
extra : rebase_source : f04340ee5b363424f0860fce8d0618ee99049312
This commit is contained in:
Nazım Can Altınova 2017-08-04 17:57:28 -07:00
parent f41592eb4a
commit d755c48944
3 changed files with 27 additions and 0 deletions

View File

@ -33,6 +33,7 @@ fuzzy-if(webrender,1,27) == compound-1a.html compound-1-ref.html
== translate-1d.html translate-1-ref.html
== translate-1e.html translate-1-ref.html
== translate-2a.html translate-2-ref.html
== translate-3.html translate-3-ref.html
# rotate: Several rotations of the same object should be idempotent. These
# tests are currently disabled because of subpixel (< 0.00001 gfx units)
# rounding errors.

View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<style>
div {
width: 100px; height: 100px;
background: green;
}
</style>
<div></div>

View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<style>
div {
width: 100px; height: 100px;
}
#outer {
background: green;
overflow: hidden;
}
#inner {
background: red;
transform: translateX(calc(100px));
}
</style>
<div id="outer">
<div id="inner">
</div>
</div>