Skip to content

Commit

Permalink
Add comment and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Feb 11, 2016
1 parent a61028e commit b0e16f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/style-properties.html
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,12 @@

// Strategy: x scope shim a selector e.g. to scope `.x-foo-42` (via classes):
// non-host selector: .a.x-foo -> .x-foo-42 .a.x-foo
// host selector: x-foo.wide -> x-foo.x-foo-42.wide
// host selector: x-foo.wide -> .x-foo-42.wide
// note: we use only the scope class (.x-foo-42) and not the hostSelector
// (x-foo) to scope :host rules; this helps make property host rules
// have low specificity. They are overrideable by class selectors but,
// unfortunately, not by type selectors (e.g. overriding via
// `.special` is ok, but not by `x-foo`).
_scopeSelector: function(rule, hostRx, hostSelector, viaAttr, scopeId) {
rule.transformedSelector = rule.transformedSelector || rule.selector;
var selector = rule.transformedSelector;
Expand Down
1 change: 1 addition & 0 deletions src/standard/x-styling.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
var serializeValueToAttribute = Polymer.Base.serializeValueToAttribute;

var propertyUtils = Polymer.StyleProperties;
var styleUtil = Polymer.StyleUtil;
var styleTransformer = Polymer.StyleTransformer;
var styleDefaults = Polymer.StyleDefaults;

Expand Down

0 comments on commit b0e16f0

Please sign in to comment.