File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 14
14
-->
15
15
16
16
<!--
17
- Uses the HTML <table> content model, but automatically adds a number to
18
- the <caption>. Use this as <table is="cxx-table">, unlike the other custom
19
- elements .
17
+ Use this as <dl is="cxx-definition-section"> to build the unusual "terms
18
+ and definitions" section that gets numbered as if each term is a section,
19
+ but doesn't make them show up in the table of contents .
20
20
-->
21
21
< polymer-element name ="cxx-definition-section " extends ="dl ">
22
22
< template >
23
23
< style >
24
- dt { font-weight : bold; }
25
- dd { margin-left : 0 ; }
24
+ polyfill-next-selector { content : 'dt' ; }
25
+ ::content dt { font-weight : bold; }
26
+ polyfill-next-selector { content : 'dd' ; }
27
+ ::content dd { margin-left : 0 ; }
26
28
</ style >
27
29
28
30
< content > </ content >
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ limitations under the License.
43
43
dt . term_number = next_term_number ++ ;
44
44
45
45
var template = importDocument . getElementById (
46
- 'cxx-definition-section-term' ) ;
46
+ 'cxx-definition-section-term' ) . cloneNode ( true ) ;
47
47
template . removeAttribute ( 'id' ) ;
48
48
template . model = dt ;
49
49
You can’t perform that action at this time.
0 commit comments