KenjiBaheux / css-font-rendering

A proposal for CSS to let web developers control the behavior of font rendering
Apache License 2.0
96 stars 10 forks source link

What's the difference between 'optional'… #12

Closed jakearchibald closed 9 years ago

jakearchibald commented 9 years ago

…and swap 0s?

KenjiBaheux commented 9 years ago

Yeah, I don't think there is any difference. Optional is definitely easier to understand. Does this tell us something about swap <timeout>? itself? Is it not natural enough?

I think that mandatory <timeout>? is more straightforward.

Without knowing about the mandatory option, would someone think that "swap 0s" mean to swap immediately and "swap 1s" to swap after waiting for 1s after the font?

What if we had optional defined as follows:

optional <timeout>?

jakearchibald commented 9 years ago

I think that makes more sense, although you've still got the <timeout> value meaning something very different between optional and mandatory

KenjiBaheux commented 9 years ago

See https://github.com/KenjiBaheux/css-font-rendering/issues/11 for the latest on this area.