[initial-letter] Fix positioning for raised/sunken initial letters
When the the initial-letter
property[1] has its size
larger than sink
, the top of the initial letter glyph
overhangs the top of the first line.
Before this patch, the block-direction position of such
initial letters were computed based on the actual size of the
fragment. This patch changes it to the specified size
,
making it consistent across different font metrics.
Note, the change to the positioning made two tests to hit
existing issues in exclusion space in vertical flow. They are
tracked at crbug.com/370423031.
[1] https://drafts.csswg.org/css-inline-3/#sizing-drop-initials
Bug: 370217727, 370423031
Change-Id: I24b8de13d1a76a27c30850297ca380f98f5021b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5896658
Commit-Queue: Kent Tamura tkent@chromium.org
Auto-Submit: Koji Ishii kojii@chromium.org
Reviewed-by: Kent Tamura tkent@chromium.org
Cr-Commit-Position: refs/heads/main@{#1362700}