2015-03-19 17:38:07 -07:00
|
|
|
<dom-module id="x-project">
|
|
|
|
|
<template>
|
|
|
|
|
x-project: [<content></content>]
|
|
|
|
|
</template>
|
|
|
|
|
</dom-module>
|
2014-12-21 17:08:50 -08:00
|
|
|
<script>
|
|
|
|
|
Polymer({
|
2015-01-14 15:10:11 -08:00
|
|
|
is: 'x-project'
|
2014-12-21 17:08:50 -08:00
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
2015-03-19 17:38:07 -07:00
|
|
|
<dom-module id="x-reproject">
|
|
|
|
|
<template>
|
|
|
|
|
<x-project>x-reproject: [<content></content>]</x-project>
|
|
|
|
|
</template>
|
|
|
|
|
</dom-module>
|
2014-12-21 17:08:50 -08:00
|
|
|
<script>
|
|
|
|
|
Polymer({
|
2015-01-14 15:10:11 -08:00
|
|
|
is: 'x-reproject'
|
2014-12-21 17:08:50 -08:00
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
2015-03-19 17:38:07 -07:00
|
|
|
<dom-module id='x-rereproject'>
|
|
|
|
|
<template>
|
|
|
|
|
<x-reproject>x-rereproject: [<content></content>]</x-reproject>
|
|
|
|
|
</template>
|
|
|
|
|
</dom-module>
|
2014-12-21 17:08:50 -08:00
|
|
|
<script>
|
|
|
|
|
Polymer({
|
2015-02-20 19:03:51 -08:00
|
|
|
is: 'x-rereproject',
|
|
|
|
|
attachedCount: 0,
|
|
|
|
|
attached: function() {
|
|
|
|
|
this.attachedCount++;
|
|
|
|
|
}
|
2014-12-21 17:08:50 -08:00
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
2015-03-19 17:38:07 -07:00
|
|
|
<dom-module id="x-test">
|
|
|
|
|
<template>
|
|
|
|
|
<x-rereproject><span id="projected">projected</span></x-rereproject>
|
|
|
|
|
</template>
|
|
|
|
|
</dom-module>
|
2014-12-21 17:08:50 -08:00
|
|
|
<script>
|
|
|
|
|
Polymer({
|
2015-01-14 15:10:11 -08:00
|
|
|
is: 'x-test'
|
2014-12-21 17:08:50 -08:00
|
|
|
});
|
2015-04-09 19:01:24 -07:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<dom-module id="x-test-no-distribute">
|
|
|
|
|
<template>
|
|
|
|
|
<content select=".foo"></content>
|
|
|
|
|
</template>
|
|
|
|
|
</dom-module>
|
|
|
|
|
<script>
|
|
|
|
|
Polymer({
|
|
|
|
|
is: 'x-test-no-distribute'
|
|
|
|
|
});
|
2015-04-10 14:35:10 -07:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<dom-module id="x-distribute">
|
2015-04-13 10:06:22 -07:00
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<span>Elements without test attribute</span>
|
|
|
|
|
<div id="notTestContainer" style="color: white; background-color: green; min-height: 1em;">
|
|
|
|
|
<content id="notTestContent" select=":not([test])"></content>
|
|
|
|
|
</div>
|
|
|
|
|
<span>Elements with test attribute</span>
|
|
|
|
|
<div style="color: white; background-color: red; min-height: 1em;">
|
|
|
|
|
<div id="testContainer">
|
|
|
|
|
<content id="testContent" select="[test]"></content>
|
2015-04-10 14:35:10 -07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2015-04-13 10:06:22 -07:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</dom-element>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
Polymer({
|
|
|
|
|
is: "x-distribute"
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<dom-module id="x-compose">
|
|
|
|
|
<template><x-project id="project"></x-project></template>
|
|
|
|
|
</dom-module>
|
|
|
|
|
<script>
|
|
|
|
|
Polymer({
|
|
|
|
|
is: 'x-compose'
|
|
|
|
|
});
|
|
|
|
|
</script>
|