|
8 | 8 | version of the draft standard (or as well as I can interpret
|
9 | 9 | the spacing in LaTeX - a .9\textwidth minipage with tabs every
|
10 | 10 | .6 inches).
|
11 |
| -
|
12 |
| - FIXME: We should pobably define a CXX class for these blocks. |
13 | 11 | -->
|
14 |
| -<polymer-element name="bnf-grammar"> |
| 12 | +<polymer-element name="bnf-grammar" noscript> |
15 | 13 | <template>
|
16 |
| - <div style="font-style:italic;margin-left:.35in;"> |
17 |
| - <content></content> |
18 |
| - </div> |
| 14 | + <style> |
| 15 | + :host { display: block; font-style:italic; margin-left:.35in; }; |
| 16 | + </style> |
| 17 | + <content></content> |
19 | 18 | </template>
|
20 |
| - <script> |
21 |
| - Polymer('bnf-grammar', { |
22 |
| - applyAuthorStyles: true, |
23 |
| - }); |
24 |
| - </script> |
25 | 19 | </polymer-element>
|
26 | 20 |
|
27 | 21 | <!-- BNF rule
|
28 | 22 | Defines a BNF production.
|
29 | 23 | -->
|
30 |
| -<polymer-element name="bnf-rule"> |
| 24 | +<polymer-element name="bnf-rule" noscript> |
31 | 25 | <template>
|
32 |
| - <span style="margin-left:.6in"><content></content>:<br/></span> |
| 26 | + <style> |
| 27 | + :host { display: block; margin-left: .6in; } |
| 28 | + </style> |
| 29 | + <content></content>: |
33 | 30 | </template>
|
34 |
| - <script> |
35 |
| - Polymer('bnf-rule', { |
36 |
| - applyAuthorStyles: true, |
37 |
| - }); |
38 |
| - </script> |
39 | 31 | </polymer-element>
|
40 | 32 |
|
41 | 33 |
|
42 |
| -<!-- BNF rule alternative. |
43 |
| - Indents the alternative beneath the rule name and applies |
| 34 | +<!-- BNF rule alternative. |
| 35 | + Indents the alternative beneath the rule name and applies |
44 | 36 | a line break.
|
45 | 37 | -->
|
46 |
| -<polymer-element name="bnf-alt"> |
| 38 | +<polymer-element name="bnf-alt" noscript> |
47 | 39 | <template>
|
48 |
| - <span style="margin-left:1.2in"><content></content></span><br/> |
| 40 | + <style> |
| 41 | + :host { display: block; margin-left:1.2in; } |
| 42 | + </style> |
| 43 | + <content></content> |
49 | 44 | </template>
|
50 |
| - <script> |
51 |
| - Polymer('bnf-alt', { |
52 |
| - applyAuthorStyles: true, |
53 |
| - }); |
54 |
| - </script> |
55 | 45 | </polymer-element>
|
56 | 46 |
|
57 | 47 | <!-- BNF terminal
|
58 | 48 | A terminal element in a BNF specification.
|
59 | 49 | -->
|
60 |
| -<polymer-element name="bnf-terminal"> |
61 |
| - <template |
62 |
| - ><code style="font-style:normal"><content></content></code></template> |
63 |
| - <script> |
64 |
| - Polymer('bnf-terminal', { |
65 |
| - applyAuthorStyles: true, |
66 |
| - }); |
67 |
| - </script> |
| 50 | +<polymer-element name="bnf-terminal" noscript> |
| 51 | + <template><style> |
| 52 | + :host { font-style: normal; } |
| 53 | + </style><code><content></content></code></template> |
68 | 54 | </polymer-element>
|
69 | 55 |
|
70 | 56 | <!-- BNF optional element -->
|
71 |
| -<polymer-element name="bnf-opt"> |
| 57 | +<polymer-element name="bnf-opt" noscript> |
72 | 58 | <template><sub>opt</sub></template>
|
73 |
| - <script> |
74 |
| - Polymer('bnf-opt', { |
75 |
| - applyAuthorStyles: true, |
76 |
| - }); |
77 |
| - </script> |
78 | 59 | </polymer-element>
|
79 | 60 |
|
80 | 61 | <!-- Grammar terms
|
81 | 62 | A grammar term refers to a BNF production in the grammar.
|
82 | 63 |
|
83 |
| - TODO: Link grammar terms to their definitions? |
| 64 | + TODO: Link grammar terms to their definitions? |
84 | 65 | -->
|
85 |
| -<polymer-element name="cxx-grammarterm"> |
| 66 | +<polymer-element name="cxx-grammarterm" noscript> |
86 | 67 | <template><i><content></content></i></template>
|
87 |
| - <script> |
88 |
| - Polymer('cxx-grammarterm', { |
89 |
| - applyAuthorStyles: true, |
90 |
| - }); |
91 |
| - </script> |
92 | 68 | </polymer-element>
|
0 commit comments