feat(shadow_css): add encapsulation support for CSS @supports at-rule
Closes #7944
This commit is contained in:

committed by
Misko Hevery

parent
b2e0946696
commit
cb84cbf545
@ -60,6 +60,12 @@ export function main() {
|
||||
expect(s(css, 'a')).toEqual(expected);
|
||||
});
|
||||
|
||||
it('should handle support rules', () => {
|
||||
var css = '@supports (display: flex) {section {display: flex;}}';
|
||||
var expected = '@supports (display:flex) {section[a] {display:flex;}}';
|
||||
expect(s(css, 'a')).toEqual(expected);
|
||||
});
|
||||
|
||||
// Check that the browser supports unprefixed CSS animation
|
||||
it('should handle keyframes rules', () => {
|
||||
var css = '@keyframes foo {0% {transform:translate(-50%) scaleX(0);}}';
|
||||
|
Reference in New Issue
Block a user