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

Support @page css rule into component styles #11860

Closed
ocombe opened this issue Sep 23, 2016 · 1 comment · Fixed by #11878
Closed

Support @page css rule into component styles #11860

ocombe opened this issue Sep 23, 2016 · 1 comment · Fixed by #11878
Labels
area: core Issues related to the framework runtime

Comments

@ocombe
Copy link
Contributor

ocombe commented Sep 23, 2016

I'm submitting a ... (check one with "x")

[x] bug report

Current behavior
When I use the @page css rule in my component style, it gets encapsulated but it shouldn't.

For example the following css:

@page {
    size: 1500px 2048px;
}

is transformed into

@page[_ngcontent-tue-10] {
  size: 1500px 2048px;
}

It works fine with @media rules:

@media print {
    :host {
        margin: 0 auto;
        padding: 0 1rem;
    }
}

is transformed into:

@media print {
  [_nghost-tue-10] {
    margin: 0 auto;
    padding: 0 1rem;
  }
}

which works just as expected.

Expected behavior
The @page css rule should have the same behavior as @media and shouldn't be encapsulated.

What is the motivation / use case for changing the behavior?
The @page css rule doesn't work in component styles right now

Please tell us about your environment:

  • Angular version: 2.0.0
  • Browser: all
  • Language: all
@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 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: core Issues related to the framework runtime
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants