Variable filtering sets only one css attribute