[text-box-trim] Disable if intervening padding or borders
This patch implements the spec[1]:
If there is no such line, or if there is intervening non-zero padding
or borders, there is no effect.
The wpt tests:
- text-box-trim-half-leading-block-box-004.html
- text-box-trim-half-leading-block-box-005.html
test this part, but there's anoutline
on the outer box, which is
affected by the padding/border with negative margin. This patch fixes
the test by adding a new reference file.
[1] https://drafts.csswg.org/css-inline-3/#valdef-text-box-trim-trim-start
Bug: 40254880, 359926563
Change-Id: Ic0f5317947155dd81d6afdc1d4505fe30c75cd1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5905670
Auto-Submit: Koji Ishii kojii@chromium.org
Commit-Queue: Koji Ishii kojii@chromium.org
Reviewed-by: Kent Tamura tkent@chromium.org
Cr-Commit-Position: refs/heads/main@{#1364798}