Update web-platform-tests to revision a89693b62066da0e4808c0bc76c581188398e73d

This commit is contained in:
WPT Sync Bot 2018-05-24 21:43:23 -04:00
parent 1e79f27cd4
commit 7ddb44a302
102 changed files with 1119 additions and 421 deletions

View file

@ -9,6 +9,8 @@ function parseNumber(value) {
registerLayout('test', class {
static get childInputProperties() {
return [
'--available-inline-size',
'--available-block-size',
'--fixed-inline-size',
'--fixed-block-size',
'--inline-size-expected',
@ -20,9 +22,16 @@ registerLayout('test', class {
*layout(children, edges, constraints, styleMap) {
const childFragments = yield children.map((child) => {
const childConstraints = {};
const availableInlineSize = parseNumber(child.styleMap.get('--available-inline-size'));
const availableBlockSize = parseNumber(child.styleMap.get('--available-block-size'));
const fixedInlineSize = parseNumber(child.styleMap.get('--fixed-inline-size'));
const fixedBlockSize = parseNumber(child.styleMap.get('--fixed-block-size'));
return child.layoutNextFragment({fixedInlineSize, fixedBlockSize});
return child.layoutNextFragment({
availableInlineSize,
availableBlockSize,
fixedInlineSize,
fixedBlockSize
});
});
const actual = childFragments.map((childFragment) => {