Commit d54516f6 authored by Rakina Zata Amni's avatar Rakina Zata Amni Committed by Commit Bot

Update perf test for CE def style to use CSSStyleSheet constructor

Constructor for CSSStyleSheets has changed in a recent CL, so this test
is failing.

TBR=crouleau@chromium.org

Bug: 914084
Change-Id: Icbf34425f9141bdd581a0c2ab9b568aaf058a358
Reviewed-on: https://chromium-review.googlesource.com/c/1373373Reviewed-by: default avatarRakina Zata Amni <rakina@chromium.org>
Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Commit-Queue: Rakina Zata Amni <rakina@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615843}
parent d9ad5448
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<script> <script>
const holderElement = document.getElementById("holder"); const holderElement = document.getElementById("holder");
const constructedStyleSheet = document.createEmptyCSSStyleSheet(); const constructedStyleSheet = new CSSStyleSheet();
constructedStyleSheet.insertRule("* { color: red; }"); constructedStyleSheet.insertRule("* { color: red; }");
window.customElements.define("element-constructed", class extends HTMLElement { window.customElements.define("element-constructed", class extends HTMLElement {
constructor() { constructor() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment