chrome-devtools-frontend
Version:
Chrome DevTools UI
20 lines (14 loc) • 645 B
text/typescript
// 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.
import * as Elements from '../../../../panels/elements/components/components.js';
import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
await FrontendHelpers.initializeGlobalVars();
const component = new Elements.ComputedStyleProperty.ComputedStyleProperty();
document.getElementById('container')?.appendChild(component);
component.innerHTML = `
<span slot="name">display</span>
<span slot="value">block</span>
`;
component.traceable = false;
component.inherited = true;