W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2020

[csswg-drafts] [css-ui-4][css-images-4][scroll-animations-1] Unify selector functions/values (#5811)

From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
Date: Sun, 20 Dec 2020 23:13:36 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-771738657-1608506015-sysbot+gh@w3.org>
SebastianZ has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-ui-4][css-images-4][scroll-animations-1] Unify selector functions/values ==
There are currently several specs defining different ways for referencing (ID) selectors:

* CSS UI 4: [`<id>`](https://drafts.csswg.org/css-ui-4/#nav-dir)
* CSS Images 4: [`element(<id-selector>)`](https://drafts.csswg.org/css-images-4/#element-notation)
* Scroll Animations 1: [`selector(<id-selector>)`](https://drafts.csswg.org/scroll-animations-1/#scroll-timeline-descriptors)

To improve the consistency between them, the syntax for referencing a selector should be merged.

Personally, I prefer the `selector()` function of Scroll Animations 1 because its name clearly outlines that it takes a selector and it is extensible as may allow other selectors then ID selectors in the future.

See also the related discussion in #5166. And depending on the outcome of #1981, CSS Images 4 might be changed to not have a specific selector function anymore.

Sebastian

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5811 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 20 December 2020 23:13:37 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:24 UTC