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

Re: [csswg-drafts] [css-images] [css-gcpm] Overloaded definitions of element() (#1981)

From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
Date: Sun, 20 Dec 2020 23:23:58 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-748686198-1608506637-sysbot+gh@w3.org>
@cdoublev wrote:

> and the extra features of `image()` seem also superflous.

The extra features come "for free" because `image()` also takes images referenced via `url()`. So, in that regard it makes sense to merge `element()` into `url()`.

Though I just realized another little downside of merging it into `url()`. `element()` (or `selector()`, see #5811) might allow different selectors than just ID selectors in the future. Those can't be expressed via `url()`.


GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1981#issuecomment-748686198 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:23:59 UTC

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