mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision c0fbd59769588391d78838086bd02ad394301655
This commit is contained in:
parent
a07c718895
commit
a3df7c3a3c
105 changed files with 1922 additions and 1186 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue