WeasyPrint icon indicating copy to clipboard operation
WeasyPrint copied to clipboard

Support for CSS Overflow 4 module

Open TUSF opened this issue 6 years ago • 1 comments

This is not an immediate feature request; the draft for the Overflow 4 spec is not even complete. This issue is to track and bring awareness to this feature for implementing in the future, if (or when) the draft is more developed.

https://drafts.csswg.org/css-overflow-4/

My main interest in this particular module, is the capacity to have a kind of pseudo line-selector, which is sorely lacking in the current spec, and is unlikely to actually be added. According to the current draft, this could be achieved using something like the following:

  /* Latin often had text that reversed direction each line. */
p:lang(la) {
  max-lines: 1;
  continue: fragments;
}
p:lang(la)::nth-fragment(even) {
  transform: scale(-1, 1);
}

This'll also be pretty neat for more complex column layouts without needing to make a new element (see Example 9 for example.)

TUSF avatar Feb 04 '19 00:02 TUSF

Note that some of Overflow level 3 has been added (at least continue). Unfortunately, the features currently available are not able to handle your use case 😒.

liZe avatar Aug 17 '21 19:08 liZe