| OLD | NEW |
| 1 SKY MODULE - exports some basic HTML-like elements | 1 SKY MODULE - exports some basic HTML-like elements |
| 2 <import src="element.sky"/> | 2 <import src="element.sky"/> |
| 3 | 3 |
| 4 <!-- note: accessibility handling is not implemented yet, because the | 4 <!-- note: accessibility handling is not implemented yet, because the |
| 5 mojo ax service isn't yet ready --> | 5 mojo ax service isn't yet ready --> |
| 6 | 6 |
| 7 <import src="scrollable-block.sky"> |
| 7 <element name=html> | 8 <element name=html> |
| 8 <!-- implement a scrollable viewport --> | 9 <style> |
| 10 :host { display: scrollable-block; } |
| 11 </style> |
| 9 </element> | 12 </element> |
| 10 | 13 |
| 11 <element name=head /> | 14 <element name=head /> |
| 12 <element name=body /> | 15 <element name=body /> |
| 13 <element name=p /> | 16 <element name=p /> |
| 14 | 17 |
| 15 <element name=h1> | 18 <element name=h1> |
| 16 <style> | 19 <style> |
| 17 :host { margin-top: 0.67em; margin-bottom: 0.67em; font-size: 2.00em; font-wei
ght: bold; } | 20 :host { margin-top: 0.67em; margin-bottom: 0.67em; font-size: 2.00em; font-wei
ght: bold; } |
| 18 </style> | 21 </style> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 module.currentScript.parentNode.setPrototype({ | 103 module.currentScript.parentNode.setPrototype({ |
| 101 init: function () { | 104 init: function () { |
| 102 | 105 |
| 103 }, | 106 }, |
| 104 open() { | 107 open() { |
| 105 | 108 |
| 106 } | 109 } |
| 107 }); | 110 }); |
| 108 </script> | 111 </script> |
| 109 </element> | 112 </element> |
| OLD | NEW |