Skip to content

Implement object-fit and object-position for replaced elements #13

Description

@FlorianRappl

Description
Replaced elements (especially <img>) appear to stretch to the element box instead of honoring object fitting and positioning rules.

Scope

  • Implement object-fit modes (fill, contain, cover, none, scale-down).
  • Implement object-position alignment/offset handling.
  • Apply logic to replaced-content rendering pipeline with intrinsic dimensions.

Acceptance criteria

  • Images render according to specified object-fit mode.
  • object-position moves focal position as expected.
  • Aspect-preserving and cropping behavior matches CSS expectations for test fixtures.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions