Enable link-parameters on Nightly
Categories
(Core :: CSS Parsing and Computation, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox153 | --- | fixed |
People
(Reporter: snowe, Assigned: snowe)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
| Assignee | ||
Comment 1•3 months ago
|
||
Updated•3 months ago
|
Comment 3•3 months ago
|
||
For the release notes request, see https://bugzilla.mozilla.org/show_bug.cgi?id=2022783#c40.
Sebastian
Updated•3 months ago
|
Comment 6•2 months ago
|
||
I have been doing some testing on this to see that works according to the spec.
I built this pen
Using the link-parameters CSS property seems to be working as expected.
Using <img src="https://assets.codepen.io/5342839/rainbow.svg#param(--circle8, white)" alt="grey-arch" /> to add param() to the image src does. not work as expected
Using background-image: url("https://assets.codepen.io/5342839/rainbow.svg", param(--circle8, green)); does not work as expected
Have these last 2 been implemented?
I have tested this in Firefox Nightly 154
| Assignee | ||
Comment 7•2 months ago
|
||
No, only link-parameters with svgs was implemented. Work still needs to be done for images and URLs
Comment 8•2 months ago
|
||
Note added to our 153 & 154 nightly release notes in the Web Platform section with this wording:
Starting with Firefox 153, Firefox Nightly ships an experimental implementation of the
link-parametersproperty by Tyler Thrailkill.
Updated•2 months ago
|
Comment 9•2 months ago
|
||
I am assuming that setting env() with custom-properties is not supported either?
https://drafts.csswg.org/css-link-params/#example-d60cfbe7
Comment 10•2 months ago
|
||
Should the env() function work on all attribute on all SVG elements
I have tried, using the env() function on the dur & repeatCount attributes of the <animate> SVG element
https://codepen.io/CodeRedDigital/pen/BypZoQv
<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
<rect width="10" height="10">
<animate
attributeName="rx"
values="0;5;0"
dur="env(--breath-speed, 5s)"
repeatCount="env(--breath-count, 2)" />
</rect>
</svg>
| Assignee | ||
Comment 11•2 months ago
|
||
Hmm. I'm not aware of a reason it shouldn't work. I will investigate and add tests for those attributes.
Comment 12•1 month ago
|
||
Related issues and pull requests
Comment 13•26 days ago
|
||
Removing the nightly-only note since the release note has been carried over for 3 cycles.
A final release note can be added and tracked under the bug that eventually enables this.
Description
•