Closed Bug 2090887 Opened 26 days ago Closed 14 days ago

[wpt-sync] Sync PR 64939 - layout: Prevent `<button>` from obeying layout-internal display types

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Oriol Brufau <obrufau@igalia.com> wrote:

layout: Prevent <button> from obeying layout-internal display types

A <button> should allow display values like flex or inline-grid. However, all browsers agree that layout-internal values like table-cell should be treated like inline, like it happens for fully replaced elements.

This patch refactors DisplayGeneratingBox::used_value_for_contents() to use the same logic for replaced elements and widgets. For example, display: inline will now be treated as inline-block for replaced elements too, though in practice, the only behavior difference will be on buttons.

Testing: Addign new test
Fixes: #<!-- nolink -->49744

Reviewed in servo/servo#49745

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Component: web-platform-tests → Layout
Product: Testing → Core
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 256 tests and 4 subtests

Status Summary

Firefox

OK : 34
PASS: 3[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 472[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 611[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 612[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 1[GitHub] 94[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 173[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 174[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

PASS: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 14 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.