Closed Bug 1681375 Opened 4 years ago Closed 4 years ago

Chrome seems to force empty contenteditables to have some height, while Firefox may not

Categories

(Core :: Layout: Text and Fonts, defect, P2)

defect

Tracking

()

RESOLVED FIXED
86 Branch
Webcompat Priority ?
Tracking Status
firefox86 --- fixed

People

(Reporter: twisniewski, Assigned: emilio)

Details

Attachments

(2 files)

Attached file testcase.html

In the attached test-case, Firefox gives the empty div a zero height, while Chrome seems to force it to have a height because it is contenteditable (without contenteditable, it also lays out with zero height).

As seen on webcompaat.com, without this "forced height", the comment form on support.oppo.com breaks, as the actual (trasparent) comment box has no height, and so cannot actually be seen.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Severity: -- → S2
Priority: -- → P2
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/34938f7c55a3 Allow scrolled-content-block to have a height for editable elements. r=layout-reviewers,mats
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/26890 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: