RESOLVED FIXED 140525
Add the alternative syntax for CSS Selector's descendant combinator (">>")
https://bugs.webkit.org/show_bug.cgi?id=140525
Summary Add the alternative syntax for CSS Selector's descendant combinator (">>")
Benjamin Poulain
Reported 2015-01-15 16:11:54 PST
Add the alternative syntax for CSS Selector's descendant combinator (">>")
Attachments
Patch (50.52 KB, patch)
2015-01-15 16:14 PST, Benjamin Poulain
no flags
Archive of layout-test-results from ews107 for mac-mavericks-wk2 (968.96 KB, application/zip)
2015-01-15 17:00 PST, Build Bot
no flags
Patch (50.53 KB, patch)
2015-01-15 17:08 PST, Benjamin Poulain
no flags
Benjamin Poulain
Comment 1 2015-01-15 16:14:30 PST
Build Bot
Comment 2 2015-01-15 17:00:01 PST
Comment on attachment 244722 [details] Patch Attachment 244722 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/4923767511842816 New failing tests: fast/css/parsing-css-descendant-combinator-doubled-child-syntax.html
Build Bot
Comment 3 2015-01-15 17:00:06 PST
Created attachment 244731 [details] Archive of layout-test-results from ews107 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Benjamin Poulain
Comment 4 2015-01-15 17:08:18 PST
Antti Koivisto
Comment 5 2015-01-16 01:56:27 PST
How is this useful?
Benjamin Poulain
Comment 6 2015-01-16 11:47:26 PST
(In reply to comment #5) > How is this useful? It's really not at the moment :) The reason they added it is consistency: - ">" is child. - ">>>" is going through a shadow dom boundary. - ">>" is the thing in between. In the future, it should be the only way to do filtered combinators for descendant relations.
Antti Koivisto
Comment 7 2015-01-16 12:08:39 PST
Comment on attachment 244733 [details] Patch I'm not convinced by the consistency argument. It is not very consistent that the zero angle bracket case is the same as two bracket case. Is this is really worth the developer confusion and broken web sites on older browsers? r+ anyway, the patch look technically good.
Benjamin Poulain
Comment 8 2015-01-16 12:55:55 PST
(In reply to comment #7) > Comment on attachment 244733 [details] > Patch > > I'm not convinced by the consistency argument. It is not very consistent > that the zero angle bracket case is the same as two bracket case. Is this is > really worth the developer confusion and broken web sites on older browsers? > > r+ anyway, the patch look technically good. Yeah, I was not a big fan myself but it looks like everyone was okay with that syntax in the CSS Working group.
Benjamin Poulain
Comment 9 2015-01-16 12:56:59 PST
Comment on attachment 244733 [details] Patch Clearing flags on attachment: 244733 Committed r178592: <http://trac.webkit.org/changeset/178592>
Benjamin Poulain
Comment 10 2015-01-16 12:57:03 PST
All reviewed patches have been landed. Closing bug.
Antti Koivisto
Comment 11 2015-02-04 10:37:26 PST
Looks like Blink is not doing >>> https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/hRw781MV3mE The "consistency" argument seems even less convincing now.
Benjamin Poulain
Comment 12 2015-02-04 15:13:26 PST
(In reply to comment #11) > Looks like Blink is not doing >>> > > https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/hRw781MV3mE > > The "consistency" argument seems even less convincing now. Yeah, it's really weird. It is Google that has been pushing for ">>" and ">>>". I'll nuke ">>" if it goes out of the spec.
Note You need to log in before you can comment on or make changes to this bug.