how does と～と～による work?


[![enter image description
here](https://i.stack.imgur.com/pGf7r.png)](https://i.stack.imgur.com/pGf7r.png)

I know the individual words but I'm not familiar with the form used in the
left bubble so I am not sure what she is trying to convey.

context: they were talking about something else, and a cat passed by. The
brown hair girl glared at it then we get this panel.




This is not a grammar point. と is simply acting conjunctively to link nouns
while による here means "depending on". Here is how the sentence is parsed:

> （時と場合と猫）による  
>  It depends on the time, the situation, and the cat.




This is not a grammar point. と is simply acting conjunctively to link nouns
while による here means "depending on". Here is how the sentence is parsed:

> （時と場合と猫）による  
>  It depends on the time, the situation, and the cat.

