Bug 1367299 - Allow -webkit-radial-gradient to be serialized in different way with stylo. r=dholbert

MozReview-Commit-ID: 7hBIf6PkiRa

--HG--
extra : rebase_source : 5ddb9efcfa6e797faf89938e96a60238ccaf3ae1
This commit is contained in:
Xidorn Quan 2017-08-04 16:56:02 +10:00
Родитель 49e04cc095
Коммит 7a45a416ae
2 изменённых файлов: 16 добавлений и 7 удалений

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

@ -46,8 +46,6 @@ to mochitest command.
## Need Gecko change
* test_specified_value_serialization.html `-webkit-radial-gradient`: bug 1380259 [1]
## Unknown / Unsure
## Ignore

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

@ -122,13 +122,24 @@
[ "-webkit-linear-gradient(top left, red, blue)",
"-webkit-linear-gradient(left top, red, blue)",
"-webkit-linear-gradient with box corner" ],
// Radial gradients (should be serialized using modern unprefixed style):
[ "-webkit-radial-gradient(contain, red, blue)",
"radial-gradient(closest-side, red, blue)",
"-webkit-radial-gradient with legacy 'contain' keyword" ],
];
if (!SpecialPowers.DOMWindowUtils.isStyledByServo) {
// Radial gradients (should be serialized using modern unprefixed style):
backgroundImages.push([
"-webkit-radial-gradient(contain, red, blue)",
"radial-gradient(closest-side, red, blue)",
"-webkit-radial-gradient with legacy 'contain' keyword",
]);
} else {
// Servo keeps the original prefix form which is closer to other impls.
backgroundImages.push([
"-webkit-radial-gradient(contain, red, blue)",
"-webkit-radial-gradient(center center, closest-side, red, blue)",
"-webkit-radial-gradient with legacy 'contain' keyword",
]);
}
var frame_container = document.getElementById("display");
var p = document.createElement("p");
frame_container.appendChild(p);