[css2] errata?
Nobody has claimed this yet.
- Dominant language
- Bikeshed
- Stars
- 4.9k
- Forks
- 816
- PR merge metrics
- PR metrics pending
Description
CSS2.1 §13.6.3 (and 2.2 §13.6.3) say in :
Combining characters should be treated as part of the character with which they are supposed to combine.
However, css-text-3 has relaxed this requirement a little bit, in §1.4:
The rendering characteristics of a typographic character unit divided by an element boundary is undefined. Ideally each component should be rendered according to the formatting requirements of its respective element’s properties while maintaining correct shaping and positioning of the typographic character unit as a whole. However, depending on the nature of the formatting differences between its parts and the capabilities of the font technology in use, this is not always possible. Therefore such a typographic character unit may be rendered as belonging to either side of the boundary, or as some approximation of belonging to both. Authors are forewarned that dividing grapheme clusters or ligatures by element boundaries may give inconsistent or undesired results.
While it would be nice if we could define the precise behavior, L3 is specified this way because it is impossible/impractical in the general case to define how that would work.
However, this means that implementations that are conforming to css-text-3 aren't necessarily conforming to CSS21, so we should probably errata CSS21 accordingly, by keeping the current text as is, but adding "However", followed by the Level 3 text quoted above, or at least its first sentence.
The next sentence in the spec is an example:
For example, :first-letter styles the entire glyph if you have content like "ö"; it does not just match the base character.
This example would actually still work, but not for the state reason, but rather because the ::first-letter pseudo elects the whole first typographic letter unit, not just the first code point. Since this example would now be missing the point, I suggest we just drop it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Compare CSS2.1 §13.6.3 and CSS2.2 §13.6.3 with css-text-3 §1.4 and the linked css-pseudo-4 definition of ::first-letter. Determine whether the cited text and example should be updated as proposed; done means reaching and recording an erratum decision.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100