- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Thu, 22 Oct 2020 14:19:17 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `define whether/how it matters if namespace prefixes are declared`, and agreed to the following:
* `RESOLVED: the CSS.supports() function considers all namespaces invalid (like .querySelector() does), the @supports rule consults the stylesheet's namespace map`
<details><summary>The full IRC log of that discussion</summary>
<gregwhitworth> Topic: define whether/how it matters if namespace prefixes are declared<br>
<astearns> github: https://github.com/w3c/csswg-drafts/issues/3220<br>
<TabAtkins> @supports (content: attr(n|href)) {<br>
<TabAtkins> }<br>
<gregwhitworth> TabAtkins: things that take a namespace value, such as the attr function<br>
<gregwhitworth> TabAtkins: in this case if the n namespace is not declared should this supports declaration valid or not<br>
<gregwhitworth> TabAtkins: emilio_ had an opinion 14 mins ago<br>
<gregwhitworth> TabAtkins: only consider it valid when the namespace has been declared<br>
<gregwhitworth> TabAtkins: I don't like namespaces so I don't care<br>
<chris> ok someone else take this, I will rejoin<br>
<TabAtkins> document.querySelector("a|b")<br>
<gregwhitworth> TabAtkins: emilio_ also pointed out ^ (example) does check the namespace map<br>
<fantasai> chris points out it's a corner case<br>
<gregwhitworth> TabAtkins: thus we should probably stay consistent with APIs that care about namepaces<br>
<gregwhitworth> TabAtkins: it shouldn't matter, as chris said it's a corner case<br>
<gregwhitworth> fremy: one thing - you have to re-verify the at-supports<br>
<gregwhitworth> fantasai: no - that's not true, namespaces are per file<br>
<gregwhitworth> fremy: how does that work in queryselector?<br>
<fantasai> https://www.w3.org/TR/css-namespaces/#scope<br>
<gregwhitworth> rune: yeah I don't get how query selector will work<br>
<emilio_> It does _not_ check the ns map, there's no ns map to check<br>
<gregwhitworth> TabAtkins: at-supports should query the stylesheets namespace value<br>
<emilio_> But yeah @supports could<br>
<gregwhitworth> TabAtkins: so, I'm fine with emilio_ opinion<br>
<gregwhitworth> fantasai: I'm in favor of what's easy to implement as well<br>
<TabAtkins> proposed resolution: the CSS.supports() function considers all namespaces invalid (like .querySelector() does), the @supports rule consults the stylesheet's namespace map<br>
<gregwhitworth> chris: I just want it defined<br>
<gregwhitworth> astearns: any objections<br>
<gregwhitworth> the CSS.supports() function considers all namespaces invalid (like .querySelector() does), the @supports rule consults the stylesheet's namespace map<br>
<gregwhitworth> RESOLVED: the CSS.supports() function considers all namespaces invalid (like .querySelector() does), the @supports rule consults the stylesheet's namespace map<br>
</details>
--
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3220#issuecomment-714527458 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 22 October 2020 14:19:20 UTC