fune/testing/web-platform/tests/css/css-ui/outline-auto-dynamic-change-ref.html
Emilio Cobos Álvarez 9389eefd95 Bug 1759749 - Fix nsStyleOutline::CalcDifference to account for 'outline-style: auto' properly. r=dholbert
Before this patch we might not update the ink overflow areas when
'outline-style' changes without changing outline-width, if
'outline-width' was zero.

This was triggered by TopLevelVideoDocument which had 'outline-width: 0'
which before bug 1759602 disabled the default outline.

The test reliably triggers the assertion (though I think we should try
to avoid the frame property in the common case the inner rect and frame
rects just match, which would remove the assertion...).

Differential Revision: https://phabricator.services.mozilla.com/D141320
2022-03-17 12:16:15 +00:00

16 lines
259 B
HTML

<!doctype html>
<title>CSS Test Reference</title>
<style>
div {
position: absolute;
top: 10px;
left: 10px;
width: 100px;
height: 100px;
outline-width: 0;
outline-offset: 5px;
outline-color: black;
outline-style: auto;
}
</style>
<div></div>