Bug 294363
| Summary: | canonical serialization returns 0.5 instead of calc(0.5) | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Karl Dubost <karlcow> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | koivisto, ntim, sam, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar, WPTImpact |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://wpt.live/css/css-color/parsing/opacity-valid.html | ||
Karl Dubost
There are 8 tests failing the canonical serializarisation for opacity
http://wpt.fyi/css/css-color/parsing/opacity-valid.html
http://wpt.live/css/css-color/parsing/opacity-valid.html
Copy Paste this in the URL bar of different browsers:
data:text/html,<div class="test" style="opacity:clamp(50%,0%,70%)"></div><div class="log"></div><script>document.querySelector(".log").textContent=document.querySelector(".test").style.getPropertyValue("opacity");</script>
which is
<div class="test" style="opacity: clamp(50%,0%,70%)"></div>
document.querySelector(".test").style.getPropertyValue("opacity");
It returns:
0.5 Safari Technology Preview 18.4 (220) 20622.1.14.5
cal(0.5) Firefox Nightly 141.0a1 14125.6.5
clamp(50%, 0%, 70%) Google Chrome Canary 139.0.7233.0 7233.0
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/153784390>
ccarley2
Pull request: https://github.com/WebKit/WebKit/pull/48505
Tim Nguyen (:ntim)
*** This bug has been marked as a duplicate of bug 296725 ***