Closed Bug 1741798 Opened 4 years ago Closed 4 years ago

Firefox not adding padding-right when pre code blocks has horizontal scroll

Categories

(Core :: Layout: Scrolling and Overflow, defect)

Firefox 94
defect

Tracking

()

RESOLVED DUPLICATE of bug 372498

People

(Reporter: kronberg, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0

Steps to reproduce:

Looking at code examples that use a PRE CODE element on popular web sites the right side has no padding when horizontal scrollbar has appeared and been used.

Actual results:

There is no padding-right.

GitHub Markdown rendering of code blocks have this problem for example...

Example links, make a narrower view port and look at horizontally scrollable code blocks:

https://github.com/tailwindlabs/tailwindcss-typography/blob/master/README.md

https://tailwindcss.com/docs/adding-base-styles

https://krompaco.nu/2021/02/please-do-this-with-your-swagger-enabled-web-apis/

Expected results:

Both Chrome and Edge displays it as intended with the correct padding.

The issue is may be wider than just affecting PRE elements but that's where I've typically noticed it and where this type of overflow is usually wanted and used.

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Scrolling and Overflow' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Layout: Scrolling and Overflow
Product: Firefox → Core

The severity field is not set for this bug.
:jwatt, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jwatt)

Looks like a dup of bug 372498.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Flags: needinfo?(jwatt)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: