DescriptionMatch camelCased SVG attributes selectors in html documents.
Attribute names are stored lower-case in stylesheets in HTML documents.
SVG attribute names are normalized to the camelCase form in HTML
documents. That meant SVG attributes with camelCase like viewBox never
matched in HTML documents.
We had the same issue for camelCased element names in [1]. In that CL
we decided to allow insensitive matching for non-html elements in order
to avoid having to store the tag names twice in CSSSelector, even if
that is wrong according to the HTML spec. This CL does exactly the same
for attribute selectors.
[1] https://crrev.com/bab4aa7b9
R=sashab@chromium.org,esprehn@chromium.org
BUG=663798
Committed: https://crrev.com/b946c5d62ca51dff877a5a1947c62e78756bb38e
Cr-Commit-Position: refs/heads/master@{#431544}
Patch Set 1 #
Total comments: 5
Patch Set 2 : Rebased and fixed return statement #
Messages
Total messages: 18 (10 generated)
|