Bug 1603049 - Inherit outline-offset from the table. r=dbaron

outline-offset isn't included in the outline shorthand.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emilio Cobos Álvarez 2019-12-16 22:10:11 +00:00
Родитель 43da5d01ba
Коммит 224c3f6348
3 изменённых файлов: 25 добавлений и 0 удалений

Просмотреть файл

@ -61,6 +61,7 @@
grid-row-end: inherit;
order: inherit;
outline: inherit;
outline-offset: inherit;
column-span: inherit; /* needed if <table> has "column-span:all" */
contain: inherit; /* needed if table has 'contain:layout' or 'paint' */
}

Просмотреть файл

@ -0,0 +1,11 @@
<!doctype html>
<title>CSS Rest Reference</title>
<style>
table {
outline: 1px solid blue;
outline-offset: 10px;
}
</style>
<table>
Some content
</table>

Просмотреть файл

@ -0,0 +1,13 @@
<!doctype html>
<title>outline-offset applies to tables</title>
<link rel="help" href="https://drafts.csswg.org/css-ui/#propdef-outline">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1603049">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://mozilla.org" title="Mozilla">
<link rel="mismatch" href="outline-offset-table-001-notref.html">
<style>
table { outline: 1px solid blue }
</style>
<table>
Some content
</table>