Skip to content

[css-overflow-3] Note that overflow applies to replaced elements#13672

Open
Psychpsyo wants to merge 1 commit intow3c:mainfrom
Psychpsyo:patch-21
Open

[css-overflow-3] Note that overflow applies to replaced elements#13672
Psychpsyo wants to merge 1 commit intow3c:mainfrom
Psychpsyo:patch-21

Conversation

@Psychpsyo
Copy link
Copy Markdown
Contributor

@Psychpsyo Psychpsyo commented Mar 17, 2026

The spec description of overflow and browsers agree that it has effects on replaced elements.

(Well, WebKit doesn't agree, but Chrome and Firefox do.)

Example HTML that showcases this:

<!DOCTYPE html>
<img style="width: 300px; height: 300px; object-fit: cover; overflow: visible;" src="https://upload.wikimedia.org/wikipedia/commons/0/0d/Great_Wave_off_Kanagawa2.jpg">

The spec description of overflow, and browsers agree that it has effects on replaced elements.
@Psychpsyo Psychpsyo marked this pull request as draft March 17, 2026 16:36
@Psychpsyo Psychpsyo marked this pull request as ready for review March 17, 2026 17:29
@Psychpsyo Psychpsyo changed the title [ css-overflow-3] Note that overflow applies to replaced elements [css-overflow-3] Note that overflow applies to replaced elements Apr 5, 2026
Copy link
Copy Markdown
Collaborator

@fantasai fantasai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This capability was added in Level 4: https://drafts.csswg.org/css-overflow-4/#overflow-control

Maybe just adding a note pointing to that section from Level 3 would be appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants