8000 [css-values-5] issues with interpolation rules for calc-size() · Issue #10220 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-values-5] issues with interpolation rules for calc-size() #10220

@dbaron

Description

@dbaron

The rules for interpolating calc-size() (see #626) currently say:

As well, a calc-size() can be interpolated with a <length-percentage> or an <intrinsic-size-keyword>, behaving as if the second value were calc-size(value).

I see a few issues with this sentence.

First, the expression calc-size(value) at the end doesn't make sense, because calc-size() takes two arguments. I think it might be that what this meant to say is "behaving as if the non-calc-size() value value were calc-size( value , size). But there are other possible options here (although I think they have problems and this one is probably correct).

Second, this sentence seems to imply that all such combinations can be interpolated. It seems to me, particularly if the above interpretation is correct (rather than instead being calc-size(any, value ) for <length-percentage> values), that many such combinations cannot be interpolated, given the rules at the start of the section saying when two calc-size() values can be interpolated.

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

      0