w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.36k stars 641 forks source link

[css-rhythm] [css-rhythm-1] summarize use-case and limitations of line stepping at start of line box section #1155

Open tantek opened 7 years ago

tantek commented 7 years ago

Add a short paragraph / note at the start of https://drafts.csswg.org/css-rhythm/#line-height-step (perhaps move the property definition to a subheading / section parallel to the block box section) that summarizes the use-case(s) and notes limitations.

E.g. something like: (text taken from portions of an email by @fantasai )

====

Normally an author can fairly easily ensure that, within a paragraph, the line height follows a strict vertical rhythm. As long as the text is not interrupted by atomic inline content or text that has a larger font size / different vertical alignment (the majority of text), it will maintain rhythm. For such interruptions however, use the line stepping properties to preserve rhythm.

Notes:

  1. It is not clear that line height stepping is necessary
  2. There are many issues with inline layout that need to be addressed before it can be an effective solution to the problems it addresses.

For text rhythm across paragraphs, headings, and blocks in general, see block height stepping, which will more directly solve most use cases.

====

kojiishi commented 7 years ago

Done, added a new section East Asian Casual Vertical Rhythm to explain the use case and the limitation, which is, in this purpose, it's the intended behavior.

If needs more, fantasai is co-editor, she can make more changes.

dauwhe commented 7 years ago

I would very much like to see an example of the East Asian Casual Vertical Rhythm.

kojiishi commented 7 years ago

The Japan industry meetup suggested that the weak, casual rhythm is desired in East Asian publishing typography too, depends on types of documents. Updated the intro to add that.

@realskk, can you check if samples seen there can be uploaded to public, such as i18n samples site?

astearns commented 7 years ago

My understanding from the meetup was that it was acceptable but not desired from those in attendance. But they acknowledged there might be some not in attendance who would like it

kojiishi commented 7 years ago

Oh, looks like I missed that part. I think I captured what the JLREQ editor said (except other fun things that is not relevant to this level of the spec, such as vertical justifications) but didn't catch other attendees said not desired. If you did, appreciate suggestions/PR, writing non-technical text such as Intro section is something I'm most poor at.

astearns commented 7 years ago

I think the next step should be providing samples from real documents, and using those samples to create examples we can add to the spec.

dauwhe commented 6 years ago

Done, added a new section East Asian Casual Vertical Rhythm to explain the use case and the limitation, which is, in this purpose, it's the intended behavior.

I'm still having trouble understanding what "East Asian Casual Vertical Rhythm" is. No similar term is used in JLREQ. There is still no example or illustration of the use cases in the spec. The closest I can find is in section 2.5.2 of JLREQ where figure 2.41 shows text in horizontal writing mode interrupted by two illustrations. The current implementation of line-height-step will adjust the height of these images so that the surrounding text stays "on the grid," as it were. But that seems more a use case for block step sizing.