CSS lang pseudo-class matching should be case-insensitive
Bug #1267118 reported by
Carl Hoffman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
Martin Owens | ||
libcroco |
Confirmed
|
Low
|
Bug Description
Section 5.11.4 of the CSS 2.1 specification reads "The matching of C against the element's language value is performed case-insensitiv
In Inkscape 0.48, the tag <text class="abc" lang="JA"> will match the selector text.abc:lang(JA) but not the selector text.abc:lang(ja).
Related branches
tags: | added: css svg |
Changed in libcroco: | |
importance: | Unknown → Low |
status: | Unknown → New |
Changed in inkscape: | |
importance: | Undecided → Medium |
milestone: | none → 0.91 |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
Changed in libcroco: | |
status: | New → Confirmed |
To post a comment you must log in.
This is an outstanding error in libcroco which is still there in upstream 0.6.8, I've patched our version of the code in revision 12887 to do a case-insensitive match on the lang pseudo-class.
I'm attaching my test file which contains three text elements. The first 'Lower case' is green, the second is 'Jap' is a false-positive indicator while the bottom 'Upper case' is the false-negative reported here and is red before the patch and green after it.