You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With custom elements landed in Chrome beta and shadow dom in Chrome stable, the need for ::shadow and /deep/ syntax is becoming real. I don't like the /deep/ syntax, it's ugly as sin, but also rather important for overriding styling inside a shadow dom element, and right now less crashes when it encounters it, so: feature request for ::shadow and /deep/ support =)
::shadow is already supported (as well as any other ::identifier and :identifier(identifier) stuff). /deep/ support may be too early since it's actually a combinator and most likely they will change it to something like >> or >>> (for example earlier ^ and ^^ support has been added and now where are these draft combinators? Gone :). And meanwhile it's always possible to generate whatever selector characters by escaping:
@deep: ~'/deep/';
x-foo @{deep} span {
// ...
}
I guess there's nothing wrong with supporting a draft CSS feature in Less but not when the feature changes too often (yet).
except Chrome just landed shadow DOM in stable (not just canary/beta), and requires the /deep/ syntax to style things across the shadow boundary (based on the discussion I'm hearing from the Polymer guys, this is the official CSS syntax for deep styling).
Definitely giving that escaping solution a try though.
Activity
seven-phases-max commentedon May 20, 2014
::shadowis already supported (as well as any other::identifierand:identifier(identifier)stuff)./deep/support may be too early since it's actually a combinator and most likely they will change it to something like>>or>>>(for example earlier^and^^support has been added and now where are these draft combinators? Gone :). And meanwhile it's always possible to generate whatever selector characters by escaping:I guess there's nothing wrong with supporting a draft CSS feature in Less but not when the feature changes too often (yet).
Pomax commentedon May 20, 2014
except Chrome just landed shadow DOM in stable (not just canary/beta), and requires the /deep/ syntax to style things across the shadow boundary (based on the discussion I'm hearing from the Polymer guys, this is the official CSS syntax for deep styling).
Definitely giving that escaping solution a try though.
seven-phases-max commentedon May 20, 2014
Yeah, now waiting for the
/high/combinator.ryanwatkins commentedon Jul 16, 2014
Two more months now, as pointed out its in Chrome Stable, and used by Polymer, which got a good deal of focus at Google IO with their heavy push to Material Design. They work in SASS https://groups.google.com/d/msg/polymer-dev/MMa1SyezpfI/ZEytHHIJ6Z0J
lukeapage commentedon Jul 27, 2014
it shouldn't be too hard to add as a combinator, I'll keep this on my radar for when I have time
lukeapage commentedon Aug 14, 2014
I'm doing now. I found we support
was that an old syntax or is that nothing to do with shadow dom?
lukeapage commentedon Aug 14, 2014
Also, I presume when compressed spaces aren't required?
is valid?
seven-phases-max commentedon Aug 14, 2014
Yes,
^^is the old syntax and we don't need to support it anymore (and^too if I'm not mistaken).