Files
polymer/test/unit/custom-style-async-import.js
Steven Orvell 26747422d3 Fixes styling tests related to using HTML Imports
* [styling-scoped.html] remove test for <link rel="import" type="css"> as this is no longer supported
* [custom-style-async.html] convert test that used importHref to use dynamic import
2018-04-26 17:18:07 -07:00

32 lines
568 B
JavaScript

import { Polymer } from '../../lib/legacy/polymer-fn.js';
const $_documentContainer = document.createElement('div');
$_documentContainer.innerHTML = `<custom-style>
<style is="custom-style">
html {
--cs-blue: {
border : 8px solid blue;
};
}
</style>
</custom-style>
<dom-module id="x-client">
<template>
<style>
:host {
display: inline-block;
border : 4px solid red;
@apply (--cs-blue);
}
</style>
x-client
</template>
</dom-module>`;
document.body.appendChild($_documentContainer);
Polymer({
is: 'x-client'
});