fune/testing/web-platform/tests/css/css-tables/visibility-hidden-collapsed-borders.html
Ian Kilpatrick 39b7e3751e Bug 1714954 [wpt PR 29245] - [TablesNG] Don't paint collapsed borders when visibility:hidden., a=testonly
Automatic update from web-platform-tests
[TablesNG] Don't paint collapsed borders when visibility:hidden.

Previously we were unconditionally painting collapsed borders even if
we were hidden (and just trying to paint children).

This adds the "is_visible" check.

Bug: 1216308
Change-Id: Ia9223ab324c11d2eba5e75ab537cba2ddc722f2a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2939492
Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org>
Owners-Override: Aleks Totic <atotic@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#889536}

--

wpt-commits: 637847dd0b481f5bb46e3a80b78f02a6f51cb6d6
wpt-pr: 29245
2021-06-08 19:05:43 +00:00

10 lines
586 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1216308">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<meta name="assert" content="If a table has visibility:hidden collapsed borders should not be painted.">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="width: 100px; background: green;">
<table style="border: solid red 20px; border-collapse: collapse; width: 100px; height: 100px; box-sizing: border-box; visibility: hidden;">
<td></td>
</table>
</table>