Bug 1294660: Part 2 - update mask test cases and enable mask shorthand reftest. r=heycam

MozReview-Commit-ID: 4tWP9h7pTN3

--HG--
extra : rebase_source : 17631c4f964fd187a05ee621b24426c086bc5385
extra : amend_source : 00992e8274bc2900ac56c48a19956d385ecf433a
This commit is contained in:
Astley Chen 2016-06-28 22:04:41 +08:00
Родитель 1ebaa974b6
Коммит 6bbc50357e
26 изменённых файлов: 85 добавлений и 62 удалений

Просмотреть файл

@ -18,6 +18,7 @@
background-color: purple;
mask-image: url(support/50x50-opaque-blue.svg), url(#mask1);
mask-repeat: no-repeat, repeat;
mask-position: 0 0, 0 0;
width: 100px;
height: 100px;
}

Просмотреть файл

@ -18,6 +18,7 @@
background-color: purple;
mask-image: url(#mask1), url(support/50x50-opaque-blue.svg);
mask-repeat: repeat-x, no-repeat;
mask-position: 0 0, 0 0;
width: 100px;
height: 100px;
}

Просмотреть файл

@ -18,6 +18,7 @@
background-color: purple;
mask: url(#mask1), url(support/50x50-opaque-blue.svg);
mask-repeat: no-repeat, no-repeat;
mask-position: 0 0, 0 0;
width: 100px;
height: 100px;
}

Просмотреть файл

@ -25,6 +25,7 @@
background-color: purple;
mask-image: url(support/50x50-opaque-blue.svg), url(#mask1);
mask-repeat: no-repeat, repeat;
mask-position: 0 0, 0 0;
/*mask: url(#mask1);*/
width: 100px;
height: 100px;

Просмотреть файл

@ -21,6 +21,7 @@
div.inner {
background-color: purple;
mask-image: url(support/50x50-opaque-blue.svg);
mask-position: left top;
}
#no-repeat {

Просмотреть файл

@ -21,6 +21,7 @@
div.inner {
background-color: purple;
mask-image: url(support/50x50-opaque-blue.svg);
mask-position: left top;
}
#space {

Просмотреть файл

@ -21,6 +21,7 @@
div.inner {
background-color: purple;
mask-image: url(support/50x50-opaque-blue.svg);
mask-position: left top;
}
#round {

Просмотреть файл

@ -22,6 +22,7 @@
background-color: purple;
mask-image: url(support/50x50-opaque-blue.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-size: auto auto;
}
</style>

Просмотреть файл

@ -21,6 +21,7 @@
background-color: purple;
mask-image: url(support/50x50-opaque-blue.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-size: auto 20px;
}
</style>

Просмотреть файл

@ -21,6 +21,7 @@
background-color: purple;
mask-image: url(support/50x50-opaque-blue.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-size: auto 15.625%;
}
</style>

Просмотреть файл

@ -22,6 +22,7 @@
background-color: purple;
mask-image: url(support/50x50-opaque-blue.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-size: auto;
}
</style>

Просмотреть файл

@ -22,6 +22,7 @@
background-color: purple;
mask-image: url(support/50x50-opaque-blue.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-clip: border-box;
mask-origin: border-box;
mask-size: contain;

Просмотреть файл

@ -22,6 +22,7 @@
height: 88px;
mask-image: url(support/50x50-opaque-blue.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-clip: padding-box;
mask-origin: padding-box;
mask-size: contain;

Просмотреть файл

@ -22,6 +22,7 @@
background-color: purple;
mask-image: url(support/50x50-opaque-blue.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-size: contain;
mask-position: 50% 50%;
}

Просмотреть файл

@ -22,6 +22,7 @@
background-color: purple;
mask-image: url(support/50x50-opaque-blue.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-size: contain;
}
</style>

Просмотреть файл

@ -16,6 +16,7 @@
background-color: purple;
mask-image: url(support/50x50-opaque-blue.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-origin: content-box;
mask-clip: content-box;
mask-size: cover;

Просмотреть файл

@ -22,6 +22,7 @@
background-color: purple;
mask-image: url(support/50x100-opaque-blue.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-size: 32px auto;
}
</style>

Просмотреть файл

@ -22,6 +22,7 @@
background-color: purple;
mask-image: url(support/50x100-opaque-blue.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-size: 32px 64px;
}
</style>

Просмотреть файл

@ -22,6 +22,7 @@
background-color: purple;
mask-image: url(support/50x100-opaque-blue.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-size: 16px 25%;
}
</style>

Просмотреть файл

@ -22,6 +22,7 @@
background-color: purple;
mask-image: url(support/50x100-opaque-blue.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-size: 32px;
}
</style>

Просмотреть файл

@ -22,6 +22,7 @@
background-color: purple;
mask-image: url(support/50x50-opaque-blue.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-size: 50% auto;
}
</style>

Просмотреть файл

@ -22,6 +22,7 @@
background-color: purple;
mask-image: url(support/50x50-opaque-blue.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-size: 50% 32px;
}
</style>

Просмотреть файл

@ -22,6 +22,7 @@
background-color: purple;
mask-image: url(support/transparent-100x50-blue-100x50.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-size: 100% 100%;
}
</style>

Просмотреть файл

@ -22,6 +22,7 @@
background-color: purple;
mask-image: url(support/50x50-opaque-blue.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-size: 50% 25%;
}
</style>

Просмотреть файл

@ -22,6 +22,7 @@
background-color: purple;
mask-image: url(support/50x50-opaque-blue.svg);
mask-repeat: no-repeat;
mask-position: left top;
mask-size: 50%;
}
</style>

Просмотреть файл

@ -1,81 +1,79 @@
# All mask properties test cases are meant to be failed
# until bug 1251161 is fixed, which means enabling mask shorthand.
# To enable it in compile time, refer to bug 1243734
# For those test items with failure type fuzzy-if added, please refer to bug 1231643#c10.
# mask-composite test cases
fails == mask-composite-1a.html mask-composite-1-ref.html
fails == mask-composite-1b.html mask-composite-1-ref.html
fails == mask-composite-1c.html mask-composite-1-ref.html
fails == mask-composite-2a.html mask-composite-2-ref.html
fails == mask-composite-2b.html mask-composite-2-ref.html
fails == mask-composite-2c.html mask-composite-2-ref.html
== mask-composite-1a.html mask-composite-1-ref.html
fuzzy-if(skiaContent,64,200) == mask-composite-1b.html mask-composite-1-ref.html
== mask-composite-1c.html mask-composite-1-ref.html
fuzzy-if(skiaContent,1,5000) == mask-composite-2a.html mask-composite-2-ref.html
fuzzy-if(skiaContent,64,5200) == mask-composite-2b.html mask-composite-2-ref.html
fails-if(skiaContent) == mask-composite-2c.html mask-composite-2-ref.html # bug 1297031
# mask-mode test cases
fails == mask-mode-a.html mask-mode-ref.html
fails == mask-mode-b.html mask-mode-ref.html
fails == mask-mode-to-mask-type.html mask-mode-to-mask-type-ref.html
fuzzy-if(skiaContent,1,30000) == mask-mode-a.html mask-mode-ref.html
fuzzy-if(skiaContent,1,30000) == mask-mode-b.html mask-mode-ref.html
fuzzy-if(skiaContent,1,30000) == mask-mode-to-mask-type.html mask-mode-to-mask-type-ref.html
# mask-image test cases
fails == mask-image-1a.html mask-image-1-ref.html
fails == mask-image-1b.html mask-image-1-ref.html
fails == mask-image-1c.html mask-image-1-ref.html
== mask-image-1a.html mask-image-1-ref.html
== mask-image-1b.html mask-image-1-ref.html
== mask-image-1c.html mask-image-1-ref.html
== mask-image-1d.html mask-image-1-ref.html
fails == mask-image-2.html mask-image-2-ref.html
fails == mask-image-3a.html mask-image-3-ref.html
fails == mask-image-3b.html mask-image-3-ref.html
fails == mask-image-3c.html mask-image-3-ref.html
fails == mask-image-3d.html mask-image-3-ref.html
fails == mask-image-3e.html mask-image-3-ref.html
fails == mask-image-3f.html mask-image-3-ref.html
fails == mask-image-3g.html mask-image-3-ref.html
fails == mask-image-4a.html blank.html
fails == mask-image-4b.html blank.html
fuzzy-if(skiaContent,1,20000) == mask-image-2.html mask-image-2-ref.html
== mask-image-3a.html mask-image-3-ref.html
== mask-image-3b.html mask-image-3-ref.html
fuzzy-if(skiaContent,1,43) == mask-image-3c.html mask-image-3-ref.html
fuzzy-if(skiaContent,1,43) == mask-image-3d.html mask-image-3-ref.html
== mask-image-3e.html mask-image-3-ref.html
fuzzy-if(skiaContent,50,50) == mask-image-3f.html mask-image-3-ref.html
== mask-image-3g.html mask-image-3-ref.html
== mask-image-4a.html blank.html
== mask-image-4b.html blank.html
== mask-image-5.html mask-image-5-ref.html
# mask-clip test cases
fails == mask-clip-1.html mask-clip-1-ref.html
== mask-clip-1.html mask-clip-1-ref.html
# mask-position test cases
fails == mask-position-1a.html mask-position-1-ref.html
fails == mask-position-1b.html mask-position-1-ref.html
fails == mask-position-1c.html mask-position-1-ref.html
fails == mask-position-2a.html mask-position-2-ref.html
fails == mask-position-2b.html mask-position-2-ref.html
fails == mask-position-3a.html mask-position-3-ref.html
fails == mask-position-3b.html mask-position-3-ref.html
fails == mask-position-4a.html mask-position-4-ref.html
fails == mask-position-4b.html mask-position-4-ref.html
fails == mask-position-4c.html mask-position-4-ref.html
fails == mask-position-4d.html mask-position-4-ref.html
fails == mask-position-5.html mask-position-5-ref.html
fails == mask-position-6.html mask-position-6-ref.html
fails == mask-position-7.html mask-position-7-ref.html
== mask-position-1a.html mask-position-1-ref.html
== mask-position-1b.html mask-position-1-ref.html
== mask-position-1c.html mask-position-1-ref.html
== mask-position-2a.html mask-position-2-ref.html
== mask-position-2b.html mask-position-2-ref.html
== mask-position-3a.html mask-position-3-ref.html
== mask-position-3b.html mask-position-3-ref.html
== mask-position-4a.html mask-position-4-ref.html
== mask-position-4b.html mask-position-4-ref.html
== mask-position-4c.html mask-position-4-ref.html
== mask-position-4d.html mask-position-4-ref.html
== mask-position-5.html mask-position-5-ref.html
== mask-position-6.html mask-position-6-ref.html
== mask-position-7.html mask-position-7-ref.html
# mask-repeat test cases
fails == mask-repeat-1.html mask-repeat-1-ref.html # bug 1258623
fails == mask-repeat-2.html mask-repeat-2-ref.html # bug 1258626
fails == mask-repeat-3.html mask-repeat-3-ref.html # bug 1258626
== mask-repeat-1.html mask-repeat-1-ref.html
== mask-repeat-2.html mask-repeat-2-ref.html
== mask-repeat-3.html mask-repeat-3-ref.html
# mask-origin test cases
fails == mask-origin-1.html mask-origin-1-ref.html # bug 1258286
== mask-origin-1.html mask-origin-1-ref.html
fails == mask-origin-2.html mask-origin-2-ref.html # bug 1260094
# mask-size test cases
fails == mask-size-auto.html mask-size-auto-ref.html
fails == mask-size-auto-auto.html mask-size-auto-ref.html
fails == mask-size-auto-length.html mask-size-auto-length-ref.html
fails == mask-size-auto-percent.html mask-size-auto-length-ref.html
fails == mask-size-contain-clip-border.html mask-size-contain-clip-border-ref.html
fails == mask-size-contain-clip-padding.html mask-size-contain-clip-padding-ref.html
fails == mask-size-contain-position-fifty-fifty.html mask-size-contain-position-fifty-fifty-ref.html
fails == mask-size-contain.html mask-size-contain-ref.html
fails == mask-size-cover.html mask-size-cover-ref.html
fails == mask-size-length.html mask-size-length-length-ref.html
fails == mask-size-length-auto.html mask-size-length-length-ref.html
fails == mask-size-length-length.html mask-size-length-length-ref.html
fails == mask-size-length-percent.html mask-size-length-percent-ref.html
fails == mask-size-percent.html mask-size-percent-percent-ref.html
fails == mask-size-percent-auto.html mask-size-percent-percent-ref.html
fails == mask-size-percent-length.html mask-size-percent-percent-ref.html
fails == mask-size-percent-percent.html mask-size-percent-percent-ref.html
fails == mask-size-percent-percent-stretch.html mask-size-percent-percent-stretch-ref.html
== mask-size-auto.html mask-size-auto-ref.html
== mask-size-auto-auto.html mask-size-auto-ref.html
== mask-size-auto-length.html mask-size-auto-length-ref.html
== mask-size-auto-percent.html mask-size-auto-length-ref.html
== mask-size-contain-clip-border.html mask-size-contain-clip-border-ref.html
== mask-size-contain-clip-padding.html mask-size-contain-clip-padding-ref.html
== mask-size-contain-position-fifty-fifty.html mask-size-contain-position-fifty-fifty-ref.html
== mask-size-contain.html mask-size-contain-ref.html
== mask-size-cover.html mask-size-cover-ref.html
== mask-size-length.html mask-size-length-length-ref.html
== mask-size-length-auto.html mask-size-length-length-ref.html
== mask-size-length-length.html mask-size-length-length-ref.html
== mask-size-length-percent.html mask-size-length-percent-ref.html
== mask-size-percent.html mask-size-percent-percent-ref.html
== mask-size-percent-auto.html mask-size-percent-percent-ref.html
== mask-size-percent-length.html mask-size-percent-percent-ref.html
== mask-size-percent-percent.html mask-size-percent-percent-ref.html
== mask-size-percent-percent-stretch.html mask-size-percent-percent-stretch-ref.html