Under the compromise , most dividends and capital gains would be taxed at 15 percent through 2008 .