for (let id of idsWithFlex) {
let wrapper = document.getElementById(id);
// Test that we got a flex info object from the element.
let flex = wrapper.getAsFlexContainer();
ok(flex, `Expected that element id ${id} would have flex info.`);
}
// Test 2: elements styled without display:flex
let idsWithoutFlex = [ "boxA",
"nonFlexFieldset", "nonFlexFieldsetOh",
"nonFlexButton", "nonFlexButtonOh",
];
for (let id of idsWithoutFlex) {
let wrapper = document.getElementById(id);
// Test that we didn't get a flex info object from the element.
let flex = wrapper.getAsFlexContainer();
ok(!flex, `Expected that element id ${id} would not have flex info.`);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.