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)
Core
CSS Parsing and Computation
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.
Reporter | ||
Updated•11 days ago
|
See Also: → https://issues.chromium.org/issues/375395106
Reporter | ||
Updated•11 days ago
|
See Also: → https://bugs.webkit.org/show_bug.cgi?id=282057
Assignee | ||
Comment 1•11 days ago
|
||
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`.
Updated•11 days ago
|
Assignee: nobody → zach
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•11 days ago
|
||
Because light-dark() dependens on color-scheme, it is not
computationally independent.
Reporter | ||
Updated•10 days ago
|
Severity: -- → S3
Assignee | ||
Updated•1 days ago
|
Blocks: css-properties-values-api
Updated•1 day ago
|
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
Updated•15 hours ago
|
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.
Description
•