| 1 |
<!-- |
| 2 |
Copyright 2017 The Closure Library Authors. All Rights Reserved. |
| 3 |
|
| 4 |
Use of this source code is governed by the Apache License, Version 2.0. |
| 5 |
See the COPYING file for details. |
| 6 |
--> |
| 7 |
<div id="sandbox"></div> |
| 8 |
|
| 9 |
<div id="button" title="Click for Decorated"> |
| 10 |
Hello Decorated |
| 11 |
</div> |
| 12 |
|
| 13 |
<!-- The component DOM must always be created without whitespace. --> |
| 14 |
<div id="button-box" title="Click for Decorated Box" class="goog-button goog-button-base"><div class="goog-inline-block goog-button-base-outer-box"><div class="goog-inline-block goog-button-base-inner-box"><div class="goog-button-base-pos"><div class="goog-button-base-top-shadow"> </div><div class="goog-button-base-content">Hello Decorated Box</div></div></div></div></div> |
| 15 |
|
| 16 |
<!-- The component DOM must always be created without whitespace. This |
| 17 |
demonstrates what happens when the content has whitespace. |
| 18 |
--> |
| 19 |
<div id="button-box-with-space-in-content" class="goog-button goog-button-base"><div class="goog-inline-block goog-button-base-outer-box"><div class="goog-inline-block goog-button-base-inner-box"><div class="goog-button-base-pos"><div class="goog-button-base-top-shadow"> </div><div class="goog-button-base-content"> |
| 20 |
Hello Decorated Box with space |
| 21 |
</div></div></div></div></div> |
| 22 |
|
| 23 |
<div id="button-box-with-dom-content"> |
| 24 |
<strong>Hello</strong> <em>Box</em> |
| 25 |
</div> |