gecko-dev/testing/web-platform/tests/css/css-tables/border-conflict-resolution-ref.html
Emilio Cobos Álvarez 89a279e6fc Bug 1520138 - Fix border-style conflict resolution in border-collapsed tables. r=dholbert
Bug 1509717 removed Gecko's definition of StyleBorderStyle to use the Rust one.

The Rust version was ordered in a different way, and the table code relied on
the order in order to build the mapping for border conflict resolution.

Simplify this mapping now that border constants are ordered in terms of
priority, see the comment on top of `enum BorderStyle`.

Differential Revision: https://phabricator.services.mozilla.com/D16565

--HG--
extra : moz-landing-system : lando
2019-01-16 19:40:08 +00:00

25 lines
688 B
HTML

<!doctype html>
<title>CSS Test Reference</title>
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://mozilla.org" title="Mozilla">
<style>
table {
font-size: 2em;
border-collapse: collapse;
border: 5px solid green;
}
</style>
<p>You should see no non-solid borders and no red.</p>
<table>
<tr>
<td colspan="4" style="border: 5px solid purple;">hello</td>
</tr>
<tr>
<td style="border-right: 5px solid blue; border-bottom: 9px hidden red;">one</td>
<td style="border-right: 5px solid blue;">two</td>
<td>three</td>
<td style="border-left: 5px solid blue">four</td>
</tr>
</table>