{"action":"created","issue":{"url":"https://api.github.com/repos/Kozea/WeasyPrint/issues/276","labels_url":"https://api.github.com/repos/Kozea/WeasyPrint/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/Kozea/WeasyPrint/issues/276/comments","events_url":"https://api.github.com/repos/Kozea/WeasyPrint/issues/276/events","html_url":"https://github.com/Kozea/WeasyPrint/issues/276","id":114772000,"number":276,"title":"Placing images on the outside of page","user":{"login":"mssoftde","id":9567924,"avatar_url":"https://avatars.githubusercontent.com/u/9567924?v=3","gravatar_id":"","url":"https://api.github.com/users/mssoftde","html_url":"https://github.com/mssoftde","followers_url":"https://api.github.com/users/mssoftde/followers","following_url":"https://api.github.com/users/mssoftde/following{/other_user}","gists_url":"https://api.github.com/users/mssoftde/gists{/gist_id}","starred_url":"https://api.github.com/users/mssoftde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mssoftde/subscriptions","organizations_url":"https://api.github.com/users/mssoftde/orgs","repos_url":"https://api.github.com/users/mssoftde/repos","events_url":"https://api.github.com/users/mssoftde/events{/privacy}","received_events_url":"https://api.github.com/users/mssoftde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-03T09:05:46Z","updated_at":"2015-11-03T10:48:07Z","closed_at":null,"body":"I'm trying to create a catalogue using WeasyPrint and I need to place images on the outside of each page (float:left on left page and float:right on right page).\r\nIs there any chance to achieve this?"},"comment":{"url":"https://api.github.com/repos/Kozea/WeasyPrint/issues/comments/153312688","html_url":"https://github.com/Kozea/WeasyPrint/issues/276#issuecomment-153312688","issue_url":"https://api.github.com/repos/Kozea/WeasyPrint/issues/276","id":153312688,"user":{"login":"SimonSapin","id":291359,"avatar_url":"https://avatars.githubusercontent.com/u/291359?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonSapin","html_url":"https://github.com/SimonSapin","followers_url":"https://api.github.com/users/SimonSapin/followers","following_url":"https://api.github.com/users/SimonSapin/following{/other_user}","gists_url":"https://api.github.com/users/SimonSapin/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonSapin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonSapin/subscriptions","organizations_url":"https://api.github.com/users/SimonSapin/orgs","repos_url":"https://api.github.com/users/SimonSapin/repos","events_url":"https://api.github.com/users/SimonSapin/events{/privacy}","received_events_url":"https://api.github.com/users/SimonSapin/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T10:48:07Z","updated_at":"2015-11-03T10:48:07Z","body":"Hum, I was thinking of a more general feature for arbitrary element styles based on page selectors, but `float: outside` might be more realistic.\r\n\r\nIt’s easy to add the new keywords to the property [in `css/validation.py`](https://github.com/Kozea/WeasyPrint/blob/0040f4799c9c3d02dd309af36ea44ad22fa15c20/weasyprint/css/validation.py#L804), but then their handling is a bit all over the place in `layout/*.py`. I also don’t remember from the top of my head how to check whether you’re on a left or right page. See what objects created in `layout/pages.py`, and if necessary add stuff to `LayoutContext`."}}