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

Whitespace removed in CSS properties in unknown @rules #262

Closed
jansorg opened this issue Aug 12, 2019 · 0 comments
Closed

Whitespace removed in CSS properties in unknown @rules #262

jansorg opened this issue Aug 12, 2019 · 0 comments

Comments

@jansorg
Copy link

jansorg commented Aug 12, 2019

I'm writing CSS for printing with Prince XML (via hugo). The CSS formats the footnote area, https://www.princexml.com/doc-prince/#footnotes-styling .

Now

div {
  border: 1px solid black;
}

@page {
  @footnotes {
    border: 1px solid black;
  }
}

becomes this (tested with https://go.tacodewolff.nl/minify):

div{border:1px solid #000}@page{@footnotes{border:1pxsolidblack;}}

The whitespace of the border root is removed and thus breaks the printing styles.
It would be great if whitespace within unknown rules could be preserved (if that's the issue here).

@jansorg jansorg changed the title Whitespace remove in CSS properties in unknown @rules Whitespace removed in CSS properties in unknown @rules Aug 12, 2019
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

No branches or pull requests

1 participant