Skip to content

Commit b69763c

Browse files
mattrbeckAndrewKushnir
authored andcommitted
test(compiler): add test for :host:has(> .foo)
I took a quick look at my recent changes to see if I had inadvertently fixed this bug, but I couldn't seem to reproduce it even before my changes. Seems like it's working, though. Closes #58436 (cherry picked from commit 4b871b1)
1 parent a8b123c commit b69763c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/compiler/test/shadow_css/host_and_host_context_spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ describe('ShadowCss, :host and :host-context', () => {
107107
expect(shim(':host(:not(.foo, .bar)) {}', 'contenta', 'a-host')).toEqualCss(
108108
'[a-host]:not(.foo, .bar) {}',
109109
);
110+
expect(shim(':host:has(> child-element:not(.foo)) {}', 'contenta', 'a-host')).toEqualCss(
111+
'[a-host]:has(> child-element:not(.foo)) {}',
112+
);
110113
});
111114

112115
// see b/63672152

0 commit comments

Comments
 (0)