Skip to content

new attr() function with type(<length>) falsely reports syntax error #451

@ericrav

Description

@ericrav

Using the redesigned css attr() function displays a syntax error:

#foo {
  left: attr(x type(<length>));
}

Results in:

  • at first <: ) expected css(css-rparentexpected)
  • at closing }: at-rule or selector expected css(css-ruleorselectorexpected)

Details about the spec:

This is pretty new and experimental feature in CSS, so I understand why it's not supported. Happy to try to implement if help is welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions