Open Bug 1531218 Opened 6 years ago Updated 2 years ago

Size of ch unit is incorrect with text-orientation: mixed and writing-mode: vertical-rl

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

Tracking Status
firefox67 --- affected

People

(Reporter: bugzilla, Unassigned)

References

(Blocks 1 open bug)

Details

When styling 'height' with 'text-orientation: mixed' and 'writing-mode: vertical-rl', the ch unit corresponds to the the advance width measure of the 0 (ZERO, U+0030) glyph.

Tests

http://w3c-test.org/css/css-values/ch-unit-003.html

http://w3c-test.org/css/css-values/ch-unit-010.html

Notes

  • Chromium 72.0.3626.96 passes these tests
  • Firefox 60.5.1 ESR and Firefox 67.0a1 buildID=20190227163104 fail these tests
  • I searched for duplicate and did not find any
  • This bug report is not related to bug 1470075.

It may be relevant that Gecko_GetFontMetrics considers an aIsVertical parameter but doesn't appear to consider the text-orientation. (It should in turn get the value computed for zeroOrAveCharWidth.)

Summary: height with ch unit in text-orientation: mixed and vertical-rl writing-mode → Size of ch unit is incorrect with text-orientation: mixed and writing-mode: vertical-rl
Component: Layout: Block and Inline → CSS Parsing and Computation

See the css-values-3 spec and the css-values-4 spec, which for the purposes of this bug are basically identical.

I knew I had reviewed a patch to fix this. Looks like bug 282126 never landed.

Depends on: 282126

Er, yes, looks like I forgot about that.

Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.