Skip to content

CSS URL prefixer comma fix, % fix, and specs#1734

Merged
Shadowfiend merged 2 commits into
masterfrom
css-url-comma-fix
Dec 5, 2015
Merged

CSS URL prefixer comma fix, % fix, and specs#1734
Shadowfiend merged 2 commits into
masterfrom
css-url-comma-fix

Conversation

@Shadowfiend
Copy link
Copy Markdown
Member

While fixing #1732, did some renaming (with deprecations), added a spec
for CssUrlPrefixer, and fixed the originally-reported comma issue, the same
issue with supporting % in CSS URLs, as well as fixing the parser's insistence
on using single quotes to wrap a URL even when the original CSS either had no
quotes or double quotes.

Biggest thing I think needs review here beyond the fixes is that any old classes
or methods are still accessible at their old names with deprecation.

Closes #1732 .

We can't rename CssHelpers proper, but CssParser becomes the much clearer
CssUrlPrefixer, which is what it actually does. fixCSS becomes fixCss, and we
leave deprecation warnings for the old invocations.
CssHelpersSpec is properly capitalized despite the fact that it's hard for us
to recapitalize CSSHelper without breaking things; it reflects the proper
capitalization approach in Lift.

It also tests several common scenarios, and verifies that the URL prefixer does
not change the quoting type that is used in the source CSS. This is important
for URLs that may contain unescaped single quotes inside double quotes or vice
versa. Additionally, we verify support for commas and other special characters.
This yields fixes for comma support and percent sign support.
@Shadowfiend Shadowfiend added this to the 3.0-M7 milestone Nov 26, 2015
@Shadowfiend
Copy link
Copy Markdown
Member Author

I'll be merging this around the end of the week assuming no feedback :)

@Shadowfiend
Copy link
Copy Markdown
Member Author

Seeing no feedback, in we go!

Shadowfiend added a commit that referenced this pull request Dec 5, 2015
CSS URL prefixer comma fix, % fix, and specs

While fixing #1732, did some renaming (with deprecations), added a spec
for CssUrlPrefixer, and fixed the originally-reported comma issue, the same
issue with supporting % in CSS URLs, as well as fixing the parser's insistence
on using single quotes to wrap a URL even when the original CSS either had no
quotes or double quotes.
@Shadowfiend Shadowfiend merged commit ddf5080 into master Dec 5, 2015
@Shadowfiend Shadowfiend deleted the css-url-comma-fix branch December 5, 2015 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fixCSS fails when URL contains a comma

1 participant