| Summary: | [CSS Math Functions] Fix failures in css/css-values/minmax-percentage-serialize.html | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Nguyen (:ntim) <ntim> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Tim Nguyen (:ntim)
2023-07-09 16:27:29 PDT
The only exception to this is if there's only one argument (see bug 259037) So arguably, WebKit's behavior is more correct here, since it does the collapsing only for properties that have a non-negative range. The test should perhaps be adjusted to test for both types of properties. It does look like the test uses text-indent, which does take a negative range as well, so WebKit isn't working as intended here. Hmm, this is more about whether a percentage can resolve to a negative value. `text-indent` / `margin-left` percentages are relative to the size of the containing block... |