Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure same order of stylesheets for built and non built environment #54

Merged
merged 1 commit into from
May 10, 2016

Conversation

adros
Copy link
Contributor

@adros adros commented May 4, 2016

When using build/amd-css dojo build plugin, stylesheets are inserted as first children of head.
But in non build environment they are appended as last children.
And if there are other style/link elements in head (static, not loaded by xstyle), they are in one case before xstyle elements, and in second one after them. And the order is significant when some rules have same 'strength'.

This commit changes the behavior, so also in build environment, stylesheets are appended as last children.

to be symetric with 'load' method which appends link element as last one
(this ensures same stylesheets order for build and non build version)
@kriszyp kriszyp merged commit 1304fda into kriszyp:master May 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants