mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Update web-platform-tests to revision 5084587f6b05bf99ad09e7844be66dcc61070cdf
This commit is contained in:
parent
6d42d2f1e8
commit
7d1071a6a4
408 changed files with 8968 additions and 2608 deletions
|
@ -529,8 +529,8 @@ const gCSSProperties = {
|
|||
]
|
||||
},
|
||||
'font-stretch': {
|
||||
// https://drafts.csswg.org/css-fonts-3/#propdef-font-stretch
|
||||
types: [ 'fontStretch' ]
|
||||
// https://drafts.csswg.org/css-fonts-4/#propdef-font-stretch
|
||||
types: [ 'percentage' ]
|
||||
},
|
||||
'font-style': {
|
||||
// https://drafts.csswg.org/css-fonts/#propdef-font-style
|
||||
|
|
|
@ -2566,54 +2566,6 @@ const dasharrayType = {
|
|||
},
|
||||
}
|
||||
|
||||
const fontStretchType = {
|
||||
testInterpolation: (property, setup) => {
|
||||
test(t => {
|
||||
const idlName = propertyToIDL(property);
|
||||
const target = createTestElement(t, setup);
|
||||
const animation =
|
||||
target.animate({ [idlName]: ['ultra-condensed', 'extra-condensed'] },
|
||||
{ duration: 1000, fill: 'both' });
|
||||
testAnimationSamples(animation, idlName,
|
||||
[{ time: 499, expected: 'ultra-condensed' },
|
||||
{ time: 500, expected: 'extra-condensed' }]);
|
||||
}, `${property} supports animating as a font-stretch (adjacent values)`);
|
||||
|
||||
test(t => {
|
||||
const idlName = propertyToIDL(property);
|
||||
const target = createTestElement(t, setup);
|
||||
const animation =
|
||||
target.animate({ [idlName]: ['ultra-condensed', 'condensed'] },
|
||||
{ duration: 1000, fill: 'both' });
|
||||
testAnimationSamples(animation, idlName,
|
||||
[{ time: 500, expected: 'extra-condensed' }]);
|
||||
}, `${property} supports animating as a font-stretch (between value)`);
|
||||
},
|
||||
|
||||
testAdditionOrAccumulation: (property, setup, composite) => {
|
||||
test(t => {
|
||||
const idlName = propertyToIDL(property);
|
||||
const target = createTestElement(t, setup);
|
||||
target.style[idlName] = 'condensed';
|
||||
const animation =
|
||||
target.animate({ [idlName]: ['expanded', 'ultra-expanded'] },
|
||||
{ duration: 1000, composite });
|
||||
testAnimationSamples(animation, idlName,
|
||||
[{ time: 0, expected: 'normal' },
|
||||
{ time: 250, expected: 'semi-expanded' }]);
|
||||
},
|
||||
`${property} uses font-stretch behavior for composite type ${composite}`);
|
||||
},
|
||||
|
||||
testAddition: function(property, setup) {
|
||||
this.testAdditionOrAccumulation(property, setup, 'add');
|
||||
},
|
||||
|
||||
testAccumulation: function(property, setup) {
|
||||
this.testAdditionOrAccumulation(property, setup, 'accumulate');
|
||||
},
|
||||
}
|
||||
|
||||
const fontVariationSettingsType = {
|
||||
testInterpolation: (property, setup) => {
|
||||
test(t => {
|
||||
|
@ -2701,6 +2653,5 @@ const types = {
|
|||
rect: rectType,
|
||||
position: positionType,
|
||||
dasharray: dasharrayType,
|
||||
fontStretch: fontStretchType,
|
||||
fontVariationSettings: fontVariationSettingsType,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue