summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/chrome/test_document_adopted_styles.html
blob: f2784bd60b0bc15aa2fe9a97d5082102d33299ef (plain)
1
2
3
4
5
6
7
8
<!doctype html>
<meta charset="utf-8">
<div class="target"></div>
<script>
  const sheet = new CSSStyleSheet();
  document.adoptedStyleSheets = [sheet];
  sheet.replaceSync(".target { width: 100px; height: 100px; border-style: solid; border-color: blue; }");
</script>