{"action":"created","issue":{"url":"https://api.github.com/repos/snaekobbi/braille-css-spec/issues/3","labels_url":"https://api.github.com/repos/snaekobbi/braille-css-spec/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/snaekobbi/braille-css-spec/issues/3/comments","events_url":"https://api.github.com/repos/snaekobbi/braille-css-spec/issues/3/events","html_url":"https://github.com/snaekobbi/braille-css-spec/issues/3","id":49422150,"number":3,"title":"Footnotes","user":{"login":"bertfrees","id":1167989,"avatar_url":"https://avatars.githubusercontent.com/u/1167989?v=3","gravatar_id":"","url":"https://api.github.com/users/bertfrees","html_url":"https://github.com/bertfrees","followers_url":"https://api.github.com/users/bertfrees/followers","following_url":"https://api.github.com/users/bertfrees/following{/other_user}","gists_url":"https://api.github.com/users/bertfrees/gists{/gist_id}","starred_url":"https://api.github.com/users/bertfrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bertfrees/subscriptions","organizations_url":"https://api.github.com/users/bertfrees/orgs","repos_url":"https://api.github.com/users/bertfrees/repos","events_url":"https://api.github.com/users/bertfrees/events{/privacy}","received_events_url":"https://api.github.com/users/bertfrees/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/snaekobbi/braille-css-spec/labels/2+-+In+progress","name":"2 - In progress","color":"CCCCCC"},{"url":"https://api.github.com/repos/snaekobbi/braille-css-spec/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"bertfrees","id":1167989,"avatar_url":"https://avatars.githubusercontent.com/u/1167989?v=3","gravatar_id":"","url":"https://api.github.com/users/bertfrees","html_url":"https://github.com/bertfrees","followers_url":"https://api.github.com/users/bertfrees/followers","following_url":"https://api.github.com/users/bertfrees/following{/other_user}","gists_url":"https://api.github.com/users/bertfrees/gists{/gist_id}","starred_url":"https://api.github.com/users/bertfrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bertfrees/subscriptions","organizations_url":"https://api.github.com/users/bertfrees/orgs","repos_url":"https://api.github.com/users/bertfrees/repos","events_url":"https://api.github.com/users/bertfrees/events{/privacy}","received_events_url":"https://api.github.com/users/bertfrees/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2014-11-19T17:02:21Z","updated_at":"2015-01-06T10:35:47Z","closed_at":null,"body":"Add a section describing how notes can be positioned at the bottom of pages.\r\n\r\nDepends on: https://github.com/snaekobbi/braille-css-spec/issues/8\r\n\r\n<!---\r\n@huboard:{\"order\":18.0,\"milestone_order\":3,\"custom_state\":\"\"}\r\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/snaekobbi/braille-css-spec/issues/comments/68850144","html_url":"https://github.com/snaekobbi/braille-css-spec/issues/3#issuecomment-68850144","issue_url":"https://api.github.com/repos/snaekobbi/braille-css-spec/issues/3","id":68850144,"user":{"login":"bertfrees","id":1167989,"avatar_url":"https://avatars.githubusercontent.com/u/1167989?v=3","gravatar_id":"","url":"https://api.github.com/users/bertfrees","html_url":"https://github.com/bertfrees","followers_url":"https://api.github.com/users/bertfrees/followers","following_url":"https://api.github.com/users/bertfrees/following{/other_user}","gists_url":"https://api.github.com/users/bertfrees/gists{/gist_id}","starred_url":"https://api.github.com/users/bertfrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bertfrees/subscriptions","organizations_url":"https://api.github.com/users/bertfrees/orgs","repos_url":"https://api.github.com/users/bertfrees/repos","events_url":"https://api.github.com/users/bertfrees/events{/privacy}","received_events_url":"https://api.github.com/users/bertfrees/received_events","type":"User","site_admin":false},"created_at":"2015-01-06T10:35:47Z","updated_at":"2015-01-06T10:35:47Z","body":"There are a number of alternatives for handling footnotes. The recommended solution seems to be to use the ‘footnote’ value of the ‘float’ property, the ‘[@footnote](http://www.w3.org/TR/2014/WD-css-gcpm-3-20140513/#footnote-area)’ area box, the [footnote counter](http://www.w3.org/TR/2014/WD-css-gcpm-3-20140513/#footnote-counter) and the ‘[::footnote-call](http://www.w3.org/TR/2014/WD-css-gcpm-3-20140513/#footnote-call)’ and ‘[::footnote-marker](http://www.w3.org/TR/2014/WD-css-gcpm-3-20140513/#footnote-marker)’ pseudo-elements as defined in [[CSS3GCPM]](http://www.w3.org/TR/2014/WD-css-gcpm-3-20140513/#footnotes). For example:\r\n\r\n```css\r\nnote {\r\n  display: list-item;\r\n  float: footnote;\r\n}\r\nnote::footnote-call {\r\n  content: counter(footnote, footnotes)\r\n}\r\nnote::footnote-marker {\r\n  content: counter(footnote, footnotes)\r\n}\r\n@page {\r\n  counter-reset: footnote;\r\n  @footnote {\r\n    margin-top: 1;\r\n    max-height: 10;\r\n  }\r\n}\r\n@counter-style footnotes {\r\n  system: symbolic;\r\n  symbols: '*' '†' '‡' '§';\r\n}\r\n```\r\n\r\nThe ‘[footnote-policy](http://www.w3.org/TR/2014/WD-css-gcpm-3-20140513/#footnote-policy)’ property allows specifying how to handle footnotes that fall near the bottom of the page leaving not enough room for the footnote body so that it has to move to the next page. With ‘line’ and ‘block’, a page break is inserted before the note reference. With ‘auto’, the user agent chooses how to render footnotes, and will place the footnote body on a later page than the footnote reference. I would add a few more values to further refine ‘auto’. A note reference could be left on the current page, but allowing only note bodies on the next page(s), and requiring a page break before continuing the normal flow. Another approach would be to just leave the reference on the current page without taking other precautions. (Note: this approach is acceptable when notes are numbered continuously, but if numbering is reset on each page, it would be possible that there is a note reference and a note body with the same number on the same page, but that don't belong together.)\r\n\r\nThe ‘footnote-display’ property seems less useful.\r\n\r\nThe approach of [CSS3GCPM] is also used in [PRINCE], except that here the ‘@footnote’ area is called ‘@footnotes’ and the ‘[footnote-policy](http://www.princexml.com/doc/9.0/properties/prince-footnote-policy)’ values are named differently.\r\n\r\nThe other existing alternative is to use the ‘[move-to](http://www.w3.org/TR/2003/WD-css3-content-20030514/#move-to)’ property, the ‘[pending()](http://www.w3.org/TR/2003/WD-css3-content-20030514/#pendingltidentifiergt)’ value of the content property, and the ‘[::alternate](http://www.w3.org/TR/2003/WD-css3-content-20030514/#inserting1)’ pseudo-element as defined in [[CSS3GENCON]](http://www.w3.org/TR/2003/WD-css3-content-20030514/). For example:\r\n\r\n```css\r\nnoteref {\r\n  display: inline;\r\n  counter-increment: footnote;\r\n  content: counter(footnote);\r\n}\r\nnoteref::alternate {\r\n  content: target-content(attr(idref url));\r\n  display: list-item;\r\n  move-to: footnotes;\r\n}\r\nnoteref::alternate::marker {\r\n  content: counter(footnote);\r\n}\r\nnote {\r\n  display: none;\r\n}\r\n@page {\r\n  counter-reset: footnote;\r\n  @footnote {\r\n    content: pending(footnotes);\r\n  }\r\n}\r\n```\r\n\r\nElements and pseudo-elements that are moved using the ‘move-to’ property inherit from their position in the DOM, not from their new position. The DOM is not changed.\r\n\r\nThis alternative seems a bit more low-level, flexible and wider applicable, but on the other hand it lacks the special treatment that is needed for footnotes, and the explicit \"move-to\" isn't very intuitive because it's unpredictable where the note will be moved to (could be on the next page). Also, the specification is a bit out of date. According to the [latest draft](http://dev.w3.org/csswg/css-content-3) it even appears to be obsolete.\r\n\r\nTo enable footnotes using the _named flow_ mechanism, notes could be channeled through the \"footnote\" flow into the ‘@footnotes’ area of the page. Note that the \"footnote\" flow has no special meaning (it could have any name). This means that, as opposed to the \"float: footnote\" method (see above), the footnote counter is not implicitely incremented, and the \"footnote\" flow is not inserted automatically. Also, no ‘[::footnote-call](http://www.w3.org/TR/2014/WD-css-gcpm-3-20140513/#footnote-call)’ and ‘[::footnote-marker](http://www.w3.org/TR/2014/WD-css-gcpm-3-20140513/#footnote-marker)’ pseudo-elements are generated. The note body is styled through the ‘:flow(footnote)’ pseudo-class, the note reference is styled through the element itself.\r\n\r\n```css\r\nnote {\r\n  flow: normal footnote;\r\n  counter-increment: footnote;\r\n  display: inline;\r\n  content: counter(footnote, footnotes);\r\n}\r\nnote:flow(footnote) {\r\n  display: list-item;\r\n  content: content();\r\n}\r\nnote:flow(footnote)::marker {\r\n  content: counter(footnote, footnotes);\r\n}\r\n@page {\r\n  counter-reset: footnote;\r\n  @footnotes {\r\n    content: flow(footnote);\r\n  }\r\n}\r\n```\r\n\r\nIf the note elements are being referenced with noterefs instead of inserted inline, the example would look like this:\r\n\r\n```css\r\nnoteref {\r\n  flow: normal footnote;\r\n  counter-increment: footnote;\r\n  display: inline;\r\n  content: counter(footnote, footnotes);\r\n}\r\nnoteref:flow(footnote) {\r\n  display: list-item;\r\n  content: target-content(attr(idref url));\r\n}\r\nnoteref:flow(footnote)::marker {\r\n  content: counter(footnote, footnotes);\r\n}\r\nnote {\r\n  display: none;\r\n}\r\n@page {\r\n  counter-reset: footnote;\r\n}\r\n```\r\n\r\nPossibly, the value ‘footnote’ could get a special meaning, so that ‘footnote-policy’ would work as expected.\r\n\r\nThe ‘[position](http://www.w3.org/TR/CSS21/visuren.html#propdef-position)’ property which is used for positioning elements with respect to the normal flow, is kind of related and could be used here as well, but ‘flow’ sounds more direct.\r\n\r\nThe ‘flow’ property could possibly get additional values in order to support the \"notes layout fallback mechanism\".\r\n"}}