fune/testing/web-platform/tests/css/css-ui/outline-style-inherit.html
Emilio Cobos Álvarez 5c16995c88 Bug 1805392 - Fix outline-style: inherit behavior if you don't specify outline-width. r=Oriol
The fix is calling set_outline_style so that we also reset the actual
outline width. Also clean-up surrounding code a little bit to be
marginally more efficient, and do the same change for border-*-style
(which was doing the right thing, but it's better to make sure both stay
in sync).

Differential Revision: https://phabricator.services.mozilla.com/D164554
2022-12-13 12:29:37 +00:00

14 lines
659 B
HTML

<!doctype html>
<meta charset="utf-8">
<title>Inheriting outline-style should compute the right outline-width</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#outline-width">
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#outline-style">
<link rel="match" href="outline-style-inherit-ref.html">
<style>
div { width: 100px; height: 100px }
</style>
<div style="outline-style: solid; outline-color: transparent">
<div style="outline-style: inherit; outline-color: green"></div>
</div>