blob: 9e5aab35f3bfacfbc48a7013c67f2cd6f6443179 [file] [log] [blame]
<!--
Copyright 2020 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<!DOCTYPE html>
<div class="rule1 rule2"></div>
<script>
const sheet1 = new CSSStyleSheet();
sheet1.insertRule('.rule1 { background-color: rgb(255, 0, 0); }', 0);
const sheet2 = new CSSStyleSheet();
sheet2.insertRule('.rule2 { background-color: rgb(0, 0, 0); color: rgb(255, 0, 0); }', 0);
document.adoptedStyleSheets = [sheet1, sheet2];
</script>