Skip to content

Commit 2f6ef5c

Browse files
committed
Remove applyAuthorStyles, which isn't in the current Shadow DOM styling spec.
See http://dev.w3.org/csswg/shadow-styling/. Fixes #1.
1 parent a64df69 commit 2f6ef5c

File tree

7 files changed

+7
-36
lines changed

7 files changed

+7
-36
lines changed

base.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ cxx-titlepage { page: title; page-break-after: always; }
3636

3737
@media print {
3838
html { font-size: 10pt; }
39-
pre,code { font-size: 8pt; }
39+
* /shadow-deep/ pre, * /shadow-deep/ code { font-size: 8pt; }
4040
/* Note that only Prince generates clickable links. */
41-
a[href] { text-decoration:none; }
41+
* /shadow-deep/ a[href] { text-decoration:none; }
4242
}
4343

4444
/* Needed to make the <cxx-titlepage>'s vertical spacing work. */

ednote.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
limitations under the License.
1414
-->
1515

16-
<polymer-element name="cxx-ednote">
16+
<polymer-element name="cxx-ednote" noscript>
1717
<template>
1818
<style>
1919
:host { display: block; }
@@ -25,9 +25,4 @@
2525
</style>
2626
<aside><strong>Editor's note:</strong> <content></content></aside>
2727
</template>
28-
<script>
29-
Polymer('cxx-ednote', {
30-
applyAuthorStyles: true,
31-
});
32-
</script>
3328
</polymer-element>

email.html

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,6 @@
1313
limitations under the License.
1414
-->
1515

16-
<polymer-element name="cxx-email">
17-
<template><a href="mailto:{{value}}"><content></content></a></template>
18-
<script>
19-
(function() {
20-
Polymer('cxx-email', {
21-
applyAuthorStyles: true,
22-
'created': function() {
23-
this.value = this.textContent;
24-
},
25-
})
26-
})();
27-
</script>
16+
<polymer-element name="cxx-email" noscript>
17+
<template><a href="mailto:{{textContent}}"><content></content></a></template>
2818
</polymer-element>

function.html

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
limitations under the License.
1414
-->
1515

16-
<polymer-element name="cxx-function" constructor="CxxFunctionElement">
16+
<polymer-element name="cxx-function" constructor="CxxFunctionElement" noscript>
1717
<template>
1818
<style>
1919
:host { display: block; }
@@ -27,19 +27,14 @@
2727
<content></content>
2828
</dl>
2929
</template>
30-
<script>
31-
Polymer('cxx-function', {
32-
applyAuthorStyles: true,
33-
});
34-
</script>
3530
</polymer-element>
3631
<polymer-element name="cxx-signature" noscript>
3732
<template><style>
3833
:host {padding-left: 2em;display:block;text-indent:-2em;}
3934
:host(.formatted) {padding-left: 0m; text-indent:0;}
4035
</style><content></content></template>
4136
</polymer-element>
42-
<polymer-element name="cxx-attribute" constructor="CxxFunctionAttributeElement">
37+
<polymer-element name="cxx-attribute" constructor="CxxFunctionAttributeElement" noscript>
4338
<template>
4439
<style>
4540
:host {display:block; margin-top: .5em; margin-bottom: .5em;}
@@ -50,11 +45,6 @@
5045
</style>
5146
<dt>{{heading}}:</dt><dd><content></content></dd>
5247
</template>
53-
<script>
54-
Polymer('cxx-attribute', {
55-
applyAuthorStyles: true,
56-
});
57-
</script>
5848
</polymer-element>
5949
<polymer-element name="cxx-requires" extends="cxx-attribute">
6050
<script>

ref.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ limitations under the License.
2121
observe: {
2222
'inElem.index': 'indexChanged'
2323
},
24-
applyAuthorStyles: true,
2524

2625
checkInvariants: function() {
2726
if (this.in) {

section.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ limitations under the License.
1818
// String section number, like "17.2.3". 1-based.
1919
sec_num: "?",
2020

21-
applyAuthorStyles: true,
22-
2321
checkInvariants: function() {
2422
if (!this.id) {
2523
console.error(this, 'is missing an id.');

titlepage.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ limitations under the License.
2222
revises: null,
2323
title: null,
2424

25-
applyAuthorStyles: true,
2625
created: function() {
2726
this.docnum = this.querySelector('cxx-docnum');
2827
this.pubdate = this.querySelector('time[pubdate]');

0 commit comments

Comments
 (0)