Bug 1603049 - Inherit outline-offset from the table. r=dbaron
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 16 Dec 2019 22:10:11 +0000
changeset 507321 12b52bc98c6f7be3fe8ec888ec05fc8bd7cf983f
parent 507320 bb5a4bc0cbb4a64445e0170f1cafcc52c9209833
child 507322 603b256782f870fe74e8e81304789fdf27c49190
push id103358
push userealvarez@mozilla.com
push dateMon, 16 Dec 2019 22:11:47 +0000
treeherderautoland@12b52bc98c6f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs1603049
milestone73.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
layout/style/res/ua.css
testing/web-platform/tests/css/css-ui/outline-offset-table-001-notref.html
testing/web-platform/tests/css/css-ui/outline-offset-table-001.html
--- a/layout/style/res/ua.css
+++ b/layout/style/res/ua.css
@@ -56,16 +56,17 @@
   align-self: inherit;
   justify-self: inherit;
   grid-column-start: inherit;
   grid-column-end: inherit;
   grid-row-start: inherit;
   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' */
 }
 
 *|*::-moz-table-row {
   display: table-row;
 }
 
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-ui/outline-offset-table-001-notref.html
@@ -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>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-ui/outline-offset-table-001.html
@@ -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>