Make WordPress Core

#62566 closed defect (bug) (invalid)

Bug in WordPress version: 6.7.1

Reported by: pateldeepak852's profile pateldeepak852 Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.7.1
Component: General Keywords: dev-feedback close
Focuses: Cc:

Description (last modified by swissspidy)

Error display in head tag
code: <style>img:is([sizes="auto" i], [sizes^="auto," i]) { contain-intrinsic-size: 3000px 1500px }</style>

Need to add a dot in style tag attribute " .contain-intrinsic-size "

File Location: wp-include/media.php line no.: 2076

Change History (4)

#1 @benazeer
16 months ago

Thank you for the ticket. @pateldeepak852

For me, the current code seems correct, and there doesn’t to be an issue.

The :is() pseudo-class and contain-intrinsic-size property are used appropriately.

Adding a .contain-intrinsic-size class is unnecessary and redundant.

Please correct me if I'm misunderstanding something? OR please provide more details of the issue.

#2 @swissspidy
16 months ago

  • Description modified (diff)
  • Keywords close added

I think you're mistaking this for a CSS class name. contain-intrinsic-size is indeed a valid CSS property, see https://developer.mozilla.org/en-US/docs/Web/CSS/contain-intrinsic-size

This ticket was mentioned in Slack in #core by poena. View the logs.


16 months ago

#4 @joemcgill
16 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

The current CSS is indeed correct.

Note: See TracTickets for help on using tickets.