Skip to content

[css-conditional] Unbalanced brackets in @supports condition #1016

@upsuper

Description

@upsuper

Gecko and Edge seem to reject (return false for CSS.supports) a condition if there is any unbalanced bracket, while Blink seems to accept it.

e.g. There are two conditions in Gecko's test suite:

  • not ({ something @with (unbalanced brackets })
  • (color: green) or an-extension(that is [unbalanced)

Gecko and Edge return false for both, while Blink returns true for both.

The spec doesn't seem to have anything about this. The question is, should it allow or disallow unbalanced brackets? Either way, it should probably be stated explicitly in the spec.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions