forked from mirrors/gecko-dev
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
14 lines
659 B
HTML
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>
|