Make WordPress Core

#63213 closed defect (bug) (invalid)

Twenty Twenty Five Theme CSS Rule Problem

Reported by: rock4temps's profile rock4temps Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: css Cc:

Description (last modified by sabernhardt)

To structure it as follows:

  • Group Block (full-width alignment)
    • Group Block
      • Paragraph Block

The paragraph block is assigned a width of 14px by the CSS rule:

.wp-container-core-group-is-layout-4e5923ef > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 14px;
}

Instead of:
max-width: var(--wp--style--global--content-size);

Attachments (2)

group-inner-content-width.png (45.0 KB) - added by sabernhardt 14 months ago.
Content width settings (in English)
groupe-largeur-du-contenu.png (52.2 KB) - added by sabernhardt 14 months ago.
Content width settings (in French)

Download all attachments as: .zip

Change History (6)

#1 @sainathpoojary
14 months ago

Hey @rock4temps,

Thanks for bringing this up! I attempted to reproduce the issue but wasn’t able to do so successfully. I’ve attached a preview video for reference. It would be really helpful if you could share additional steps to reproduce the issue. Thanks!

Video: https://rioudcpuyg.ufs.sh/f/PL8E4NiPUWyO53msc00D45jTOVwQ7E8qrYChcamIHyl0XDp9

@sabernhardt
14 months ago

Content width settings (in English)

@sabernhardt
14 months ago

Content width settings (in French)

#2 @sabernhardt
14 months ago

  • Component changed from Themes to Editor
  • Description modified (diff)
  • Keywords reporter-feedback added

Those max-width styles are in core-block-supports-inline-css, which should not relate to the theme.

I think you have the content width set to a specific number of pixels for multiple Group blocks (14px for one, and others with 2px or 235px). Then you probably would want to delete any values in the Content Width and Wide Width fields and/or uncheck the toggle switch for setting a width on inner blocks.

#3 @rock4temps
14 months ago

OK, that was the problem.

#4 @sabernhardt
14 months ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Thanks for confirming!

Note: See TracTickets for help on using tickets.