| OLD | NEW |
| 1 Sky Markup: Syntax | 1 Sky Markup: Syntax |
| 2 ================== | 2 ================== |
| 3 | 3 |
| 4 A Sky file must consist of the following components: | 4 A Sky file must consist of the following components: |
| 5 | 5 |
| 6 1. If the file is intended to be a top-level Sky application, the | 6 1. If the file is intended to be a top-level Sky application, the |
| 7 string "```#!mojo mojo:sky```" followed by a U+0020, U+000A or | 7 string "```#!mojo mojo:sky```" followed by a U+0020, U+000A or |
| 8 U+000D character. | 8 U+000D character. |
| 9 | 9 |
| 10 If the file is intended to be a module, then the string "SKY", a | 10 If the file is intended to be a module, then the string "SKY", a |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 - The contents of the element aren't placed in the Element itself. | 155 - The contents of the element aren't placed in the Element itself. |
| 156 They are instead placed into a DocumentFragment that you can obtain | 156 They are instead placed into a DocumentFragment that you can obtain |
| 157 from the element's "content" attribute. | 157 from the element's "content" attribute. |
| 158 | 158 |
| 159 <script> | 159 <script> |
| 160 - Blocks until all previous imports have been loaded, then runs the | 160 - Blocks until all previous imports have been loaded, then runs the |
| 161 script, with either 'module' or 'application' as the first | 161 script, with either 'module' or 'application' as the first |
| 162 argument, the exports of any imports that have "as" attributes at | 162 argument, the exports of any imports that have "as" attributes at |
| 163 this time passed in as subsequent arguments, and with "this" set to | 163 this time passed in as subsequent arguments, and with "this" set to |
| 164 null. | 164 null. |
| 165 TODO(ianh): could be something other than null? | |
| 166 | 165 |
| 167 <style> | 166 <style> |
| 168 - Adds the contents to the document's styles. | 167 - Adds the contents to the document's styles. |
| 169 | 168 |
| 170 <content> | 169 <content> |
| 171 <content select="..."> | 170 <content select="..."> |
| 172 - In a shadow tree, acts as an insertion point for distributed nodes. | 171 - In a shadow tree, acts as an insertion point for distributed nodes. |
| 173 The select="" attribute gives the selector to use to pick the nodes | 172 The select="" attribute gives the selector to use to pick the nodes |
| 174 to place in this insertion point; it defaults to everything. | 173 to place in this insertion point; it defaults to everything. |
| 175 | 174 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 206 The following attributes are available on all elements: | 205 The following attributes are available on all elements: |
| 207 | 206 |
| 208 id="" (any value) | 207 id="" (any value) |
| 209 class="" (any value, space-separated) | 208 class="" (any value, space-separated) |
| 210 style="" (declaration part of a Sky style rule) | 209 style="" (declaration part of a Sky style rule) |
| 211 lang="" (language code) | 210 lang="" (language code) |
| 212 dir="" (ltr or rtl only) | 211 dir="" (ltr or rtl only) |
| 213 | 212 |
| 214 contenteditable="" (subject to future developments) | 213 contenteditable="" (subject to future developments) |
| 215 tabindex="" (subject to future developments) | 214 tabindex="" (subject to future developments) |
| OLD | NEW |