Update web-platform-tests to revision c0fbd59769588391d78838086bd02ad394301655

This commit is contained in:
WPT Sync Bot 2018-06-05 21:09:27 -04:00
parent a07c718895
commit a3df7c3a3c
105 changed files with 1922 additions and 1186 deletions

View file

@ -23,15 +23,16 @@ const expectedDisplay = {
'tbody': 'table-row-group',
'tfoot': 'table-footer-group',
'tr': 'table-row',
'td': 'table-cell',
'th': 'table-cell',
'td': 'none',
'th': 'none',
};
for (const el of document.querySelectorAll("[hidden]")) {
test(function() {
const style = getComputedStyle(el);
assert_equals(style.display, expectedDisplay[el.localName]);
if (el instanceof HTMLTableElement ||
el instanceof HTMLTableCaptionElement) {
el instanceof HTMLTableCaptionElement ||
el instanceof HTMLTableCellElement) {
assert_equals(style.visibility, 'visible');
} else {
assert_equals(style.visibility, 'collapse');