Skip to content

[css-images] Definition of cross-fade() natural dimensions seem to contradict definition of natural dimensions #11203

Open
@weinig

Description

@weinig

The current definition of the natural dimensions of a cross-fade() require knowledge of the context in which the cross fade is being used. Specifically step 2.2. states:

2.2. Run the object size negotiation algorithm for the , as appropriate for the context in which the cross-fade() appears, and set item’s width and height to the width and height of the resulting concrete object size.

This seems to contradict the definition of natural dimensions, which are defined, which state:

These natural dimensions represent the preferred sizing intrinsic to the object itself; that is, they are not a function of the context in which the object is used.

(emphasis added).


From an implementation standpoint, it is useful to have natural dimensions be context independent, as it allows for better separation of concerns.

From a spec standpoint, it seems plausible that a spec could use the natural dimension of a CSS image without the context being known yet and therefore, making use of cross-fade() impossible there.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions