Skip to content

[css-transitions] test for the transition shorthand assumes that all longhands are always serialized except for transition-behavior #43574

@graouts

Description

@graouts

If you look at this test:

test_valid_value('transition', 'allow-discrete display', 'display 0s ease 0s allow-discrete');

You'll notice that it is expected that the transition shorthand serializes all longhand values, including those set to initial values. I was under the impression, although I don't have spec references handy, that serialization of shorthand would always try to yield the shortest value.

Interestingly, the new transition-behavior property seems to not follow the same rule, for instance:

test_valid_value('transition',
'normal opacity, color, allow-discrete display',
'opacity 0s ease 0s, color 0s ease 0s, display 0s ease 0s allow-discrete');

Notice here that transition-behavior is only serialized in the transition shorthand when the non-initial value allow-discrete is specified.

What are the specs mandating this?

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