{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/csswg-drafts/issues/459","repository_url":"https://api.github.com/repos/w3c/csswg-drafts","labels_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/459/labels{/name}","comments_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/459/comments","events_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/459/events","html_url":"https://github.com/w3c/csswg-drafts/issues/459","id":176198897,"number":459,"title":"[css-text-decor] text-decoration-thickness & text-underline-position properties","user":{"login":"litherum","id":918903,"avatar_url":"https://avatars.githubusercontent.com/u/918903?v=3","gravatar_id":"","url":"https://api.github.com/users/litherum","html_url":"https://github.com/litherum","followers_url":"https://api.github.com/users/litherum/followers","following_url":"https://api.github.com/users/litherum/following{/other_user}","gists_url":"https://api.github.com/users/litherum/gists{/gist_id}","starred_url":"https://api.github.com/users/litherum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/litherum/subscriptions","organizations_url":"https://api.github.com/users/litherum/orgs","repos_url":"https://api.github.com/users/litherum/repos","events_url":"https://api.github.com/users/litherum/events{/privacy}","received_events_url":"https://api.github.com/users/litherum/received_events","type":"User","site_admin":false},"labels":[{"id":381892077,"url":"https://api.github.com/repos/w3c/csswg-drafts/labels/css-text-decor-4","name":"css-text-decor-4","color":"c5def5","default":false},{"id":483492378,"url":"https://api.github.com/repos/w3c/csswg-drafts/labels/i18n-tracking","name":"i18n-tracking","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2016-09-10T19:44:31Z","updated_at":"2016-11-18T13:19:53Z","closed_at":null,"body":"Designers often want to control the thickness and position of underlines. Typographically, these underlines often are the thickness of certain particular strokes inside glyphs, which browsers / text libraries have no concept of. Therefore, information required for higher quality sizing / placement must come from somewhere else.\n\nNaively, this additional information could come from the \"post\" table inside font files. However, because this information is often unused, many font files have garbage data in these fields. (As an aside, I [committed](https://trac.webkit.org/changeset/176263) a patch to WebKit to use these fields, but had to [revert](https://trac.webkit.org/changeset/176298) it 7 hours later because of the low-quality data.)\n\nTherefore, this information should come from page authors. There should be a new property:\n`text-decoration-thickness: auto | <length> | file`\n\nThe `auto` value is the default, and represents browsers' current behavior. The `file` keyword means to use the values from the primary font file itself (where \"primary\" means \"the same font file which determines the horizontal and vertical text metrics for the element\"). If a font file format is used which does not include these values, then `file` behaves like `auto`.\n\nIn addition, two new values should be added to `text-underline-position`, thereby making the syntax:\n`text-underline-position: auto | [ under || [ left | right ] ] | <length> | file`\n\nWith this syntax, it is impossible to specify both a `<length>` as well as `under`, which is on purpose. The `<length>` only applies to regular underlines, not to overlines, under-underlines, nor strikethroughs.\n\nIn addition, because of the semantic meaning of text decorations, browsers should be able to clamp these values to implementation-dependent sane ranges.\n"},"comment":{"url":"https://api.github.com/repos/w3c/csswg-drafts/issues/comments/261529748","html_url":"https://github.com/w3c/csswg-drafts/issues/459#issuecomment-261529748","issue_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/459","id":261529748,"user":{"login":"upsuper","id":333750,"avatar_url":"https://avatars.githubusercontent.com/u/333750?v=3","gravatar_id":"","url":"https://api.github.com/users/upsuper","html_url":"https://github.com/upsuper","followers_url":"https://api.github.com/users/upsuper/followers","following_url":"https://api.github.com/users/upsuper/following{/other_user}","gists_url":"https://api.github.com/users/upsuper/gists{/gist_id}","starred_url":"https://api.github.com/users/upsuper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/upsuper/subscriptions","organizations_url":"https://api.github.com/users/upsuper/orgs","repos_url":"https://api.github.com/users/upsuper/repos","events_url":"https://api.github.com/users/upsuper/events{/privacy}","received_events_url":"https://api.github.com/users/upsuper/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T13:19:53Z","updated_at":"2016-11-18T13:19:53Z","body":"No. Japanese and trandition Chinese both use vertical-rl, but they have different underline position."}}
{"actor":{"display_login":"upsuper"}}