Closed Bug 2046153 Opened 3 months ago Closed 2 months ago

Enable link-parameters on Nightly

Categories

(Core :: CSS Parsing and Computation, task)

task

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: snowe, Assigned: snowe)

References

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

No description provided.
Depends on: 2022783
Assignee: nobody → modules-hackle-7u
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Enabled in nightly.

Flags: needinfo?(emilio)

For the release notes request, see https://bugzilla.mozilla.org/show_bug.cgi?id=2022783#c40.

Sebastian

relnote-firefox: --- → ?
Keywords: dev-doc-needed
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/37971dcd986e https://hg.mozilla.org/integration/autoland/rev/e81e97166abc Enable link-parameters in Nightly r=emilio,firefox-style-system-reviewers,layout-reviewers
Flags: needinfo?(emilio)
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch

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

Flags: needinfo?(modules-hackle-7u)

No, only link-parameters with svgs was implemented. Work still needs to be done for images and URLs

Flags: needinfo?(modules-hackle-7u)

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-parameters property by Tyler Thrailkill.

QA Whiteboard: [qa-triage-done-c154/b153]

I am assuming that setting env() with custom-properties is not supported either?
https://drafts.csswg.org/css-link-params/#example-d60cfbe7

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>
Flags: needinfo?(modules-hackle-7u)

Hmm. I'm not aware of a reason it shouldn't work. I will investigate and add tests for those attributes.

Flags: needinfo?(modules-hackle-7u)
Blocks: 2048953

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.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: