::first-letter pseudo-element should consider both characters within letter combinations like the Dutch "ij"
Categories
(Core :: Layout: Text and Fonts, defect, P5)
Tracking
()
Tracking | Status | |
---|---|---|
firefox87 | --- | fixed |
People
(Reporter: shanjian, Assigned: jfkthame)
References
()
Details
(4 keywords)
Attachments
(2 files)
This is a problem split from 54467. As CSS specs 5.12.2 metioned : "Some languages may have specific rules about how to treat certain letter combinations. In Dutch, for example, if the letter combination "ij" apprears at the beginning of a word, both letters should be considered within the :first-letter pseudo-element." Should we include those situations? I doubt if anyone will list a lot of such examples. Even to include above mentioned example is rather difficult, because we have to know what language it is. (Encoding normally is easier to get. )
Reporter | ||
Comment 1•23 years ago
|
||
It is not clear either we want to implement this or not. But anyway, I don't see any solution in near future.
Updated•23 years ago
|
Comment 2•23 years ago
|
||
This bug belongs to Internationalization, like bug 54467. i18n folks need to identify the combinations of letters that should be considered as a single letter, and the language in which they occur, then extend the patch crafted by Shanjian in bug 54467 keeping in mind that the :first-letter pseudo can in fact cover up to 3 characters (1 punctuation sign + 2 letters).
reassining to the correct core and core owner.
Updated•22 years ago
|
Updated•20 years ago
|
Comment 6•20 years ago
|
||
Apparently, \u0132 en \u0133 are the Unicode characters for the Dutch "ij". Could this be resolved as WONTFIX now there are characters for this? (I will bring this up at www-style.)
Updated•20 years ago
|
Comment 7•20 years ago
|
||
In most cases ij or IJ isn't seen as one character in Dutch and in most publications it isn't treated as such. I doubt whether the single character unicode values for ij/IJ are ever used in Dutch publications at all. Some Dutch references on the usage of ij can be found on: http://taalunieversum.org/taal/advies/vraag/1194/ http://taalunieversum.org/taal/advies/vraag/1188/
Comment 8•20 years ago
|
||
Seeing popular use and the very limited support of the unicode signs it doesn't make sense to not support it. Although it has been tried to get computers to see it as one character before (Dutch DOS character set and keyboards had it as a single sign), no one actually uses it. It is not even auto converted for in most popular wordprocessors.
Updated•15 years ago
|
Updated•12 years ago
|
Comment 9•9 years ago
|
||
Corrected the summary. Also, that's already documented https://developer.mozilla.org/en-US/docs/Web/CSS/::first-letter. Sebastian
Comment 10•9 years ago
|
||
Sebastian: doesn't this mean that this is a duplicate of another bug? (meaning it should be RESOLVED DUPLICATE or RESOLVED WORKFORME)
Comment 11•9 years ago
|
||
I couldn't find any other bug related to this. And it is also not implemented yet. What is done is the documentation of the feature according to the specification (though no browser seems to support this yet). FWIW I added a test case in the URL field. Maybe I was too hasty, as the browser compatibility table still needs to be updated once this bug is fixed. Should the keyword be changed back to dev-doc-needed? Sebastian
Comment 12•9 years ago
|
||
Yep, that we update Fx XY for devs and the compat table when this lands :-)
Comment 14•3 years ago
|
||
Yeah, the specification still calls this out at https://drafts.csswg.org/css-pseudo/#first-letter-pseudo and we still ignore it. (As do other browsers, but I don't think that necessarily calls for changing the specification as in many ways this is a quality-of-implementation issue.)
Assignee | ||
Comment 16•3 years ago
|
||
This still seems like a valid issue, but given that afaik no other browser implements it either, it's relatively low priority. (Authors can't currently have any expectation of this working.) Though we do special-case the Dutch "ij" for casing (i.e. with text-transform: capitalize
), so it would make sense to respect it for ::first-letter
as well.
Assignee | ||
Comment 17•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Comment 18•3 years ago
|
||
Depends on D103223
Assignee | ||
Comment 19•3 years ago
|
||
More of a Layout:Text issue than i18n, I think; moving to that component.
Comment 20•3 years ago
|
||
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/02b46d68f0ec Make the ::first-letter pseudo respect the Dutch 'ij' digraph and treat it as a unit. r=dholbert https://hg.mozilla.org/integration/autoland/rev/acf19242273c Add wpt reftest for ::first-letter and Dutch ij digraph. r=dholbert
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/27365 for changes under testing/web-platform/tests
Comment 22•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/02b46d68f0ec
https://hg.mozilla.org/mozilla-central/rev/acf19242273c
Upstream PR merged by moz-wptsync-bot
Comment 24•3 years ago
|
||
I have updated the ::first-letter page, BCD, and release notes.
Description
•