You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, `<link rel="import" type="css">` styles were inlined by
prepending to the top of the `<dom-module>` template.
However, if there were multiple imports, the order would be reversed,
which can cause incorrect styling when overriding.
This commit makes sure the order remains correct for multiple style
imports.
Fixes #575
Previously, `<link rel="import" type="css">` styles were inlined by
prepending to the top of the `<dom-module>` template.
However, if there were multiple imports, the order would be reversed,
which can cause incorrect styling when overriding.
This commit makes sure the order remains correct for multiple style
imports.
Fixes #575
* Port of logic fix from #575
* Added tests to verify order of inlined stylesheets is correct.
* Updated CHANGELOG wrt the fix for reversed stylesheet imports.
The styles are prepended, but when there's more than one, that effectively reverses their sequence.
https://github.com/Polymer/polymer-bundler/blob/1.x/lib/vulcan.js#L404
Possibly as simple as reversing the order this collection is iterated over: https://github.com/Polymer/polymer-bundler/blob/1.x/lib/vulcan.js#L369
This effects users stuck on vulcanize 1.x only
The text was updated successfully, but these errors were encountered: