relative-time-element icon indicating copy to clipboard operation
relative-time-element copied to clipboard

Experimental: `<relative-time>` supports thresholds that are specified by the user

Open zaataylor opened this issue 2 months ago • 0 comments

These changes enable the <relative-time> element to support user-supplied thresholds that pull from the value of a newly defined data-preferred-threshold attribute. The distinction between this feature and the pre-existing threshold support offered by the element already is that it will theoretically enable per-user specification of preferred thresholds over all <relative-time> elements. This would enable us to support something akin to a user setting allowing a developer to decide how long times show up as relative before they are shown as absolute time representations.

zaataylor avatar Oct 28 '25 22:10 zaataylor