Re: [csswg-drafts] [css-text] 'tab-size' de facto applies to inline boxes (#5489)

@fantasai What about saying that `tab-size` applies to inlines, but `<number>` values refer to the space character’s advance width of the block container?

This would still give authors more freedom to change the `tab-size` value in inlines, and would be closer to existing implementations, while still avoiding that pitfall when changing the font?

Though current implementations do break the alignment when the font changes. [Testcase](https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cdiv%20style%3D%22white-space%3A%20pre%3B%20tab-size%3A%2050%3B%20-moz-tab-size%3A%2050%3B%22%3E%0A%20%20%3Cspan%20style%3D%22font-family%3A%20Ahem%22%3EA%26%239%3BB%3C%2Fspan%3E%3Cbr%2F%3E%0A%20%20%3Cspan%20style%3D%22font-family%3A%20monospace%22%3EA%26%239%3BB%3C%2Fspan%3E%3Cbr%2F%3E%0A%20%20%3Cspan%20style%3D%22font-family%3A%20serif%22%3EA%26%239%3BB%3C%2Fspan%3E%3Cbr%2F%3E%0A%20%20%3Cspan%20style%3D%22font-family%3A%20sans-serif%22%3EA%26%239%3BB%3C%2Fspan%3E%3Cbr%2F%3E%0A%3C%2Fdiv%3E)

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5489#issuecomment-689682699 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 9 September 2020 16:42:50 UTC