This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21924 - [Shadow]: Remove pseudo-classes/elements from selector fragments
Summary: [Shadow]: Remove pseudo-classes/elements from selector fragments
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 18428
  Show dependency treegraph
 
Reported: 2013-05-03 21:40 UTC by Dimitri Glazkov
Modified: 2013-05-10 01:29 UTC (History)
3 users (show)

See Also:


Attachments

Description Dimitri Glazkov 2013-05-03 21:40:42 UTC
They complicate implementation and are not super-useful. We can add them later.
Comment 1 Dimitri Glazkov 2013-05-08 17:32:32 UTC
https://dvcs.w3.org/hg/webcomponents/rev/0a5eaa16902a

I commented these out for now.
Comment 2 Jonas Sicking (Not reading bugmail) 2013-05-08 18:58:56 UTC
Rhe first list in "4.3 Matching Insertion Points" is really hard to understand. I think I know what it's trying to say, but I don't understand how it's trying to say it.

I wish there was some way to simply say that we're matching against the elements that are being inserted into that shadow tree, and that the comma-separated "compound selectors" are matched against those elements. I.e. express it in terms of pattern matching rather than selecting. But I don't know if CSS has that vocabulary.

Something else that I realized is that we can, and probably should, allow the negation pseudo-class. But the contents of that pseudo class must still be the same types of selectors that we normally require.
Comment 3 Dimitri Glazkov 2013-05-08 19:47:18 UTC
(In reply to comment #2)
> Rhe first list in "4.3 Matching Insertion Points" is really hard to
> understand. I think I know what it's trying to say, but I don't understand
> how it's trying to say it.
> 
> I wish there was some way to simply say that we're matching against the
> elements that are being inserted into that shadow tree, and that the
> comma-separated "compound selectors" are matched against those elements.
> I.e. express it in terms of pattern matching rather than selecting. But I
> don't know if CSS has that vocabulary.

I agree, that whole section needs to be rewritten.

> Something else that I realized is that we can, and probably should, allow
> the negation pseudo-class. But the contents of that pseudo class must still
> be the same types of selectors that we normally require.

So, should I uncomment them back? :)
Comment 4 Dimitri Glazkov 2013-05-08 22:02:56 UTC
(In reply to comment #3)
> > Something else that I realized is that we can, and probably should, allow
> > the negation pseudo-class. But the contents of that pseudo class must still
> > be the same types of selectors that we normally require.
> 
> So, should I uncomment them back? :)

Ah, I misread your comment. Can we put negation on the back-burner until you guys have an implementation?
Comment 5 Jonas Sicking (Not reading bugmail) 2013-05-08 22:35:13 UTC
Sure, I don't feel strongly. I'd suspect you'll quicker see an implementation which supports :not() if it's in the spec right away though.
Comment 6 Dimitri Glazkov 2013-05-09 20:57:00 UTC
I rewrote the text around matching criteria. It should be simpler/clearer/better:

https://dvcs.w3.org/hg/webcomponents/rev/c951bba69aa9

Please take a look:

https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#satisfying-matching-criteria
Comment 7 Jonas Sicking (Not reading bugmail) 2013-05-10 01:29:01 UTC
Great!