w3c / w3c/csswg-drafts

Support for shearing of lines and inline elements

Open
#2,983 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-fonts-4 i18n-jlreq i18n-tracker TTML
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

Japanese subtitles commonly use shearing of text, as illustrated below.

Not sheared:

plain

Sheared:

shear

Couple of observations:

  • while shearing might not be appropriate for books, it is commonly used for subtitles

  • shearing is not applied to individual characters, but instead to complete blocks -- each of the digits in 1998 is not sheared individually, and both ruby text and base are sheared as a single block

  • the shear angle is author-specified

  • it should be possible to shear individual lines as well as groups of lines

CSS Transforms Module Level 1 skewX() and skewY() can be applied to blocks but neither to lines nor inline elements

See tts:shear, tts:lineShear and tts:fontShear at TTML2.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the CSS Transforms Module Level 1 discussion alongside the linked TTML2 shear definitions. Use the reported subtitle examples to clarify how author-specified shearing should apply to lines, inline elements, and grouped ruby/base content; done means the relevant CSS behavior and interoperability expectations are defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.