Polymers elements cannot go fullscreen
It seems that (nested) polymer elements cannnot go fullscreen themselves:
Suppose that all these codes are preceded by an import of https://github.com/sindresorhus/screenfull.js/#why
This does not work:
<core-tooltip label='Fullscreen'>
<core-icon-button icon='fullscreen' onclick='screenfull.toggle(this)'></core-icon-button>
</core-tooltip>
But this does:
<div>
<button onclick='screenfull.toggle(this)'></button>
</div>
On the other hand, they CAN send the whole page to fullscreen
<core-tooltip label='Fullscreen'>
<core-icon-button icon='fullscreen' onclick='screenfull.toggle()'></core-icon-button>
</core-tooltip>
What makes me think it has to do with 'shadow-root'.
What version of Polymer are you using? This seems to work fine for me on 0.4.0.
If you're seeing this problem on the latest release, can you post a more complete code snippet?
My extremely simple test case based on your report:
https://gist.github.com/arthurevans/b00cf9fe0481b634bdb4
Looks like this might be solved? Please feel free to re-open if not the case.