Open Bug 1926969 Opened 11 days ago Updated 15 hours ago

Reject `light-dark()` in `@property` as not computationally independent.

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

ASSIGNED

People

(Reporter: dshin, Assigned: zrhoffman)

References

(Blocks 2 open bugs)

Details

Attachments

(3 files)

As mentioned in bug 1924562 comment 2, light-dark is not computationally independent, which means the declaration should be dropped. But it seems like we just resolve to red.

As observed with the test case in console with CSS warnings/errors enabled, specifying 1em for a <length> property causes the declaration to be dropped, but the first one does not.

See Also: → 1924562

Bug 1926969 introduces a new example of computational dependence: The
light-dark() function. So specific references to lengths, like
allows_font_relative_lengths, should be generalized.

This patch also renames ParsingMode::DISALLOW_FONT_RELATIVE to
ParsingMode::DISALLOW_COMPUTATIONALLY_DEPENDENT`.

Assignee: nobody → zach
Status: NEW → ASSIGNED

Because light-dark() dependens on color-scheme, it is not
computationally independent.

Severity: -- → S3
Blocks: 1928867
Attachment #9433256 - Attachment description: Bug 1926969 - Mark light-dark() function as computationally dependent. r=tlouw,#style → Bug 1926969 - Mark light-dark() function and system colors as computationally dependent. r=tlouw,#style
Attachment #9433256 - Attachment description: Bug 1926969 - Mark light-dark() function and system colors as computationally dependent. r=tlouw,#style → Bug 1926969 - Mark non-absolute colors as computationally dependent. r=tlouw,#style
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: