Implement media query merging when bubbling