[wpt-sync] Sync PR 39535 - Add the first test for basic text-box-trim functionality
Categories
(Core :: Layout: Block and Inline, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox115 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 39535 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/39535
Details from upstream follow.
Lingqi Chi <lingqi@chromium.org> wrote:
Add the first test for basic text-box-trim functionality
This PR adds the first functionality test for the text-box-trim property, to test the following points:
[1] The
text-box-edgewould be treated as "text" even if we do not specify a non-leading value.For inline boxes: trims the block-start side of the box to match its content edge to the metric specified by text-box-edge (treating leading as text).
[2] Use the text's text-over/text-under baseline to generate the content box
Use the text-over baseline/text-under baseline.
[3] Since
text-box-edgeis not "leading" && this is not a root inline box(span does not create a root inline box), we do not need to perform half-leading here.if text-box-edge is not leading and this is not the root inline box, if the half-leading is positive, treat it as zero.
[1] https://drafts.csswg.org/css-inline-3/#valdef-text-box-trim-start
[2] https://drafts.csswg.org/css-inline-3/#valdef-text-box-edge-text
[3] https://drafts.csswg.org/css-inline-3/#inline-height
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Comment 2•2 years ago
|
||
| Assignee | ||
Comment 3•2 years ago
|
||
| Assignee | ||
Comment 4•2 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests
Status Summary
Firefox
FAIL: 1
Chrome
FAIL: 1
Safari
FAIL: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-inline/text-box-trim/text-box-trim-half-leading-inline-box-001.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL)
Comment 6•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/8c2c3ae87734
https://hg.mozilla.org/mozilla-central/rev/df891de7ec77
Description
•