From ebc6220eeff1f8238f2ec8a136fd36adcfbc9e4c Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Tue, 16 Aug 2016 12:06:39 -0700 Subject: [PATCH 1/3] Fix css for safari --- src/elements/compat-element.html | 8 ++++---- src/elements/element.html | 19 ++++++++++++------- src/styling/style-gather.html | 2 +- src/styling/style-lib.html | 17 +++++++++-------- src/styling/style-properties.html | 14 +++++++------- src/styling/style-transformer.html | 4 ++-- test/unit/shady-v1-dynamic.html | 2 +- test/unit/styling-cross-scope-apply.html | 4 ++-- test/unit/styling-cross-scope-var.html | 2 +- 9 files changed, 39 insertions(+), 33 deletions(-) diff --git a/src/elements/compat-element.html b/src/elements/compat-element.html index 5cdcdd9200..b9f8955106 100644 --- a/src/elements/compat-element.html +++ b/src/elements/compat-element.html @@ -22,7 +22,7 @@ function nyi() { var stack = new Error().stack.split('\n'); var fn = stack.reduce(function(prev, val) { - return prev == true ? val : (prev ? prev : + return prev == true ? val : (prev ? prev : val.indexOf('compat-element.html') > 0); }, false); console.warn('Not yet implemented:', fn); @@ -60,7 +60,7 @@ disconnectedCallback() { super.disconnectedCallback(); - this.detached(); + this.detached(); } attributeChangedCallback(name, old, value) { @@ -85,13 +85,13 @@ } reflectPropertyToAttribute(property, attribute, value) { - this.constructor.attributes.propertyToAttribute(this, property, + this.constructor.attributes.propertyToAttribute(this, property, attribute, value); } serializeValueToAttribute(value, attribute, node) { node = node || this; - this.constructor.attributes.valueToAttribute(node, value, + this.constructor.attributes.valueToAttribute(node, value, attribute, value); } diff --git a/src/elements/element.html b/src/elements/element.html index 88247f9c36..1f073c7f47 100644 --- a/src/elements/element.html +++ b/src/elements/element.html @@ -17,6 +17,7 @@ +