Bug 327997
| Summary: | TypedOM incorrectly resolves currentColor in color-mix() | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Emilio Cobos Álvarez (:emilio) <emilio> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | amartinez55, heycam, koivisto, sam, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Emilio Cobos Álvarez (:emilio)
Test-case:
```
<!doctype html>
<div id="target" style="background-color: color-mix(in srgb, currentColor, transparent 20%)"></div>
<pre><script>
document.writeln(target.computedStyleMap().get("background-color").toString())
</script></pre>
```
Per spec it should contain the `color-mix()` like Firefox. Chrome has the same issue: https://issues.chromium.org/issues/574558302
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Andrew Martinez
Thank you for pointing this out. This exposed a whole host of other properties that incorrectly resolve... I am planning on submitting a series of PRs.
Andrew Martinez
Thank you for pointing this out. This exposed a whole host of other properties that incorrectly resolve... I am planning on submitting a series of PRs.
Emilio Cobos Álvarez (:emilio)
Awesome to hear!
Radar WebKit Bug Importer
<rdar://problem/190949489>