18 lines
425 B
HTML
18 lines
425 B
HTML
<!doctype html>
|
|
<title>
|
|
Reftest for bug 1375674: display: contents changes were assumed handled
|
|
incorrectly
|
|
</title>
|
|
<style>
|
|
.contents { color: red; display: contents; }
|
|
.contents.restyled { will-change: opacity; color: green; }
|
|
</style>
|
|
<div class="contents">
|
|
Should be green.
|
|
</div>
|
|
<script>
|
|
onload = () => {
|
|
document.body.offsetTop;
|
|
document.querySelector('.contents').classList.add('restyled');
|
|
}
|
|
</script>
|