mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 10:45:42 +00:00
396f88abfc
Previously, when these properties changed, we'd only send change hints to recompute overflow areas & trigger DLBI. If the outline was always outside of the element's border box, this old strategy was generally OK, because the outline tweak would cause a change to the overflow areas' size, and that would invalidate the changed area via DLBI & trigger a repaint. However, for outlines that are *inside* of the element (via negative 'outline-offset'), these change hints were not sufficient, because tweaks to the outline width & offset will NOT affect the size of the element's overflow areas and will not trigger any DLBI invalidation. So in order to correctly handle these changes, we really need to request a repaint of the affected element, since some piece of the element may need to be repainted even if it's not changing in size. MozReview-Commit-ID: J4KGUHrJ09U --HG-- extra : rebase_source : 677950d5aebdf7e90120b8fe7bb937344da42d7d
18 lines
256 B
HTML
18 lines
256 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
#tweakMe {
|
|
height: 100px;
|
|
width: 100px;
|
|
background: gray;
|
|
outline: solid 6px black;
|
|
outline-offset: -16px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="tweakMe"></div>
|
|
</body>
|
|
</html>
|