File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed 
packages/compiler-sfc/__tests__ Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,32 @@ describe('SFC scoped CSS', () => {
3939    expect ( compileScoped ( `h1 .foo { color: red; }` ) ) . toMatch ( 
4040      `h1 .foo[data-v-test] { color: red;` , 
4141    ) 
42+ 
43+     // https://github.com/vuejs/core/issues/13387 
44+     expect ( 
45+       compileScoped ( `main { 
46+   display: flex; 
47+   flex-direction: column; 
48+   background: yellowgreen; 
49+   width: 100%; 
50+   > * { 
51+     max-width: 200px; 
52+     background-color: yellow; 
53+   } 
54+ }` ) , 
55+     ) . toMatchInlineSnapshot ( ` 
56+       "main { 
57+ &[data-v-test] { 
58+   display: flex; 
59+   flex-direction: column; 
60+   background: yellowgreen; 
61+   width: 100%; 
62+ } 
63+ > *[data-v-test] { 
64+     max-width: 200px; 
65+     background-color: yellow; 
66+ } 
67+ }"` ) 
4268  } ) 
4369
4470  test ( 'nesting selector' ,  ( )  =>  { 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments