Closed Bug 1648280 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 24329 - [css-pseudo] Fix DCHECK failure with ::marker and text-combine-upright

Categories

(Core :: Layout: Generated Content, Lists, and Counters, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 24329 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/24329
Details from upstream follow.

Oriol Brufau <obrufau@igalia.com> wrote:

[css-pseudo] Fix DCHECK failure with ::marker and text-combine-upright

The 'text-combine-upright' property is not supported in LayoutNG, so it
forces the element to use legacy layout. However, when used on ::marker,
this could leave the list item using LayoutNG and only force the marker
to legacy. But markers depend on their originating list item, so this
would make some DCHECKs fail.

This patch makes DefinitelyNewFormattingContext always return false for
::marker, even if it's an outside marker with 'display: inline-block'.
This way ForceLegacyLayoutInFormattingContext will also force the list
item to use legacy layout when the marker requires it.

Bug: 457718

TEST=external/wpt/css/css-pseudo/marker-text-combine-upright.html

The test fails because 'text-combine-upright' doesn't seem to work well
on pseudo-elements, but now it doesn't crash.

Change-Id: I7f9f26914af39a9d30dbcff7fcd1ae1308981989
Reviewed-on: https://chromium-review.googlesource.com/2264129
WPT-Export-Revision: 73e93174d2c96c69f69f620add95cdbddf6a9f83

Component: web-platform-tests → Layout: Generated Content, Lists, and Counters
Product: Testing → Core
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---

CI Results

Ran 10 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-pseudo/marker-text-combine-upright.html: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/67c3c3dfbd60 [wpt PR 24329] - [css-pseudo] Fix DCHECK failure with ::marker and text-combine-upright, a=testonly https://hg.mozilla.org/integration/autoland/rev/055a516ad870 [wpt PR 24329] - Update wpt metadata, a=testonly
Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in before you can comment on or make changes to this bug.