Update web-platform-tests to revision d3cf77a7b8c20c678b725238eaa8a72eca3787ae

This commit is contained in:
WPT Sync Bot 2019-04-25 22:18:37 -04:00
parent 880f3b8b7a
commit efca990ffe
541 changed files with 8000 additions and 2276 deletions

View file

@ -1175,18 +1175,6 @@ const gCSSProperties = {
{ type: 'discrete', options: [ [ 'auto', 'smooth' ] ] }
]
},
'scroll-snap-type-x': {
// https://developer.mozilla.org/en/docs/Web/CSS/scroll-snap-type-x
types: [
{ type: 'discrete', options: [ [ 'mandatory', 'proximity' ] ] }
]
},
'scroll-snap-type-y': {
// https://developer.mozilla.org/en/docs/Web/CSS/scroll-snap-type-y
types: [
{ type: 'discrete', options: [ [ 'mandatory', 'proximity' ] ] }
]
},
'shape-outside': {
// http://dev.w3.org/csswg/css-shapes/#propdef-shape-outside
types: [

View file

@ -243,6 +243,12 @@ test(t => {
assert_class_string(anim, 'Animation', 'The returned object is an Animation');
}, 'CSSPseudoElement.animate() creates an Animation object');
test(t => {
const pseudoTarget = getPseudoElement(t, 'marker');
const anim = pseudoTarget.animate(null);
assert_class_string(anim, 'Animation', 'The returned object is an Animation for ::marker');
}, 'CSSPseudoElement.animate() creates an Animation object for ::marker');
test(t => {
const pseudoTarget = getPseudoElement(t, 'before');
const anim = pseudoTarget.animate(null);
@ -250,5 +256,13 @@ test(t => {
'The returned Animation targets to the correct object');
}, 'CSSPseudoElement.animate() creates an Animation object targeting ' +
'to the correct CSSPseudoElement object');
test(t => {
const pseudoTarget = getPseudoElement(t, 'marker');
const anim = pseudoTarget.animate(null);
assert_equals(anim.effect.target, pseudoTarget,
'The returned Animation targets to the correct object for ::marker');
}, 'CSSPseudoElement.animate() creates an Animation object targeting ' +
'to the correct CSSPseudoElement object for ::marker');
</script>
</body>

View file

@ -93,6 +93,9 @@ function getPseudoElement(test, type) {
[`.pseudo::${type}`]: 'animation: anim 10s; ' +
'content: \'\';' });
const div = createDiv(test);
if (type == 'marker') {
div.style.display = 'list-item';
}
div.classList.add('pseudo');
const anims = document.getAnimations();
assert_true(anims.length >= 1);