-
Notifications
You must be signed in to change notification settings - Fork 708
[css-logical][css-scoping] margin-inside / margin-outside #255
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
Comments
I support this. As soon as you do any print work (or any non print work with pages / spreads), this is a very desirable feature. The need for |
Sorry, but how would this behave when not printing (i.e. on a device’s screen)? |
@Zambonifofex does this matter? There are other yet existing properties which also aren't taken into account when rendering on screen (eg |
It’s not a deal‐breaker, but I just think this should be thought out. I just don't think it should do nothing when on a screen. Another potential problem: what if the element is intersected by a page boundary? It might not be a problem if it applies |
The question is not screen vs paper, it is paginated vs not paginated. It is not the majority case, on-screen and paginated does exist. Anyway, we can simply solve this problem by saying that in non paginated media, |
Actually, |
So this isn't quite as straightforward as things that depend on writing modes, since it is possible for whether you're treating something as being on a left or right page changes which page it's on. For example, if you have an element with I think in these cases you'd need to specify that any such cycles are broken by pushing the element to the later page.
However, there are paginated displays that don't have a obvious inside/outside pages, e.g., if you're paginating on a screen. You can simulate it by just assuming the first page is a right page (or left page), but you might or might not want to. |
That seems ok with me.
We probably want to do something in css-page-3 about that, as it currently seems to assume that if you are paginated, there always is a left/right recto/verso page (or if it doesn't assume that, it isn't very clear about it). |
Yes, css-page-3 assumes left/right recto/verso alternate, even if there aren't spreads. The same would be true here, I assume. Another solution to this is using scoped styles, so you can target content on different pages and style the fragments of boxes on those pages accordingly. Either way, though, it's a much more complicated issue than the flow-relative mode, because it the mapping is resolved during layout, not during the cascade. |
Hei,
I’m working in book industry and my daily business is to set up CSS for paged media. I have come across some shortcomings with the CSS paged media specs recently and want to let you know about this:
To control the "outer" margin for an element on a page (depending on whether the element is rendered on a right or left page), it would be great if the "margin" property could be extended by two new properties "margin-inside" and "margin-outside".
Prince XML already implemented this with the following properties:
An implementation of such property would make it easier to set up a paged media CSS for different rendering engines. At the moment you need different CSS settings for each render engine to achieve the described formatting.
Kind regards,
Christin
The text was updated successfully, but these errors were encountered: