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

Clearly separate CSS media embossed vs. print #5

Open
bertfrees opened this issue Nov 28, 2014 · 2 comments
Open

Clearly separate CSS media embossed vs. print #5

bertfrees opened this issue Nov 28, 2014 · 2 comments

Comments

@bertfrees
Copy link
Member

E.g. always wrap print CSS in @media print { } , even inside style attributes.

@media print { font-style: italic }

css:inline could have an option "media" (<media-query>) to filter the stylesheets and only inline rules that match the media query.

@bertfrees
Copy link
Member Author

A better solution I think would be to put styles for different target media in different attributes.

@bertfrees
Copy link
Member Author

A better solution I think would be to put styles for different target media in different attributes.

E.g. <css:inline media="print" attribute-name="css:print-style"/>

This should already be supported by css:inline.

A remaining question is how to support the print style in translators, because pf:text-transform only has one "style" parameter.

Note that media "print" was disabled in commit b63f7b8 because it wasn't being used in any translators anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant