Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
  <script src="http://www.polymer-project.org/platform.js"></script>
<link rel="import"
      href="http://www.polymer-project.org/components/polymer/polymer.html">
</head>
<body>
<polymer-element name="x-foo" noscript>
  <template>
    <style>
      :host-context(.blocky):host(:hover) {
        display: block;
        background: red;
      }
    </style>
    <h1>Mouse over</h1>
  </template>
</polymer-element>
<div class="blocky">
  <x-foo></x-foo>
</div>
<div class="non-blocky">
  <x-foo></x-foo>
</div>
  
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers