blob: 6fb76d9f6ab6095de74682a061a5c300a2a3d6ef [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(async function() {
TestRunner.addResult(`Tests that overriding shorthands within rule are visible.\n`);
await TestRunner.loadModule('elements_test_runner');
await TestRunner.showPanel('elements');
await TestRunner.loadHTML(`
<style>
#main {
height: 100px;
background: #000;
background: #bada55;
}
#main {
-x:
}
#main {
-x:
}
</style>
<div id="main"></div>
`);
ElementsTestRunner.selectNodeAndWaitForStyles('main', step1);
function step1() {
ElementsTestRunner.dumpSelectedElementStyles(true, false, true);
TestRunner.completeTest();
}
})();