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

fix(compiler): shadow CSS @import test in some browsers #4629

Closed
wants to merge 1 commit into from

Conversation

marclaval
Copy link
Contributor

The test ShadowCss should pass through @import directives is failing in some browsers: Firefox, old Androids (< 4.4) and all IEs.

Firefox
Expected '' to equal '@import url("https://fonts.googleapis.com/css?family=Roboto");'.

Android
Expected '@import url("https://fonts.googleapis.com/css?family=Roboto") ;' to equal '@import url("https://fonts.googleapis.com/css?family=Roboto");'.

IE
Expected '@import url( https://fonts.googleapis.com/css?family=Roboto );' to equal '@import url("https://fonts.googleapis.com/css?family=Roboto");'.

For Android and IE, it is a matter of quotes and white spaces, so only the normalizeCSS function has to be updated.
For Firefox, it is more complex. Test has been deactivated and a follow-up issue has been opened: #4628

@marclaval marclaval added the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 9, 2015
var css = s(styleStr, 'a');
expect(css).toEqual(styleStr);
});
// Can't work in Firefox, see https://bugzilla.mozilla.org/show_bug.cgi?id=625013
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you qualify this comment with TODO: so we can find it later and fix it?

marclaval added a commit that referenced this pull request Oct 11, 2015
@marclaval marclaval closed this in 0def28e Oct 11, 2015
@marclaval marclaval deleted the fixShadowCSSImport branch December 11, 2017 10:00
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: review The PR is still awaiting reviews from at least one requested reviewer cla: yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants