Text Background Color

Rather than adding a background rectangle, this uses a filter to provide a background color. It automatically sizes to fill the background.
Scenario:
Selecting a background color will build a filter for that specific color.
Note: Smaller font sizes, less than 30px, have a tendency for the filter to 'bleed' into the characters. To prevent this, the text element is made bold, and includes a stroke with the same color as the background.
Font Size:
Font Color:
Background:
THIS IS MY TEXT

SVG Source:
Javascript: