Seems like a dupe of
http://stackoverflow.com/questions/24125385/style-reflection-in-nested-polymer-based-custom-element-from-parent-div
:)


On Mon, Jun 9, 2014 at 7:41 AM, George Joseph <[email protected]>
wrote:

> Hello All,
>
>    I am currently evaluating Polymer as an option to use Custom Elements
> and so far I am impressed with the capabilities.I work primarily on WebKit
> and  C++ ,please  do forgive me if my JavaScript coding skills appear a bit
> lacking.
>
> I have some queries,I would really appreciate it if I could get some
> answers or pointer:
>
> 1) Is there any way a Custom Element could receive notifications or
> changes in the Div tag,style or CSS in which the Custom Element is
> embedded. In other words, is there a specific way I could know of changes
> of the parent node <div> in which <x-foo> objects are embedded, like the
> example below using  simple JS like :
>
>
> document.querySelector('#test').style[['top','left','right','width','height','bottom'][Math.floor(Math.random()*5)]]=Math.floor(Math.random()*100);
>
>
> <div id="test" style="top: 400; left: 50; width: 200; height: 300;">
> <x-foo></x-foo>
> <x-foo></x-foo>
> <x-foo></x-foo>
> </div>
>
>
> 2) Is there a way I could use the HTMLCanvasElement for creating a
> transparent punch through on the screen, so that a video can be displayed
> using a custom media framework. Ideally this would be like how a
> CustomElement <camera> tag would work, just that I would be using a
> ffmpeg/gstreamer to show video from local content.
>
> Any input/help appreciated.
>
> Keep up the good job!Polymer is cool!
> Thanks,
> George.
>
>
>  Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/c5635f9d-cd39-4bef-9b1e-57fe87910067%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/c5635f9d-cd39-4bef-9b1e-57fe87910067%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CACGqRCB31B3Xfqv-_wjw8NMNkDmu1VhDqR4MWbQYZ1zBQtO3PA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to