Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text opacity shows glyph overlap #14

Open
r12a opened this issue Jan 22, 2021 · 2 comments
Open

Text opacity shows glyph overlap #14

r12a opened this issue Jan 22, 2021 · 2 comments
Labels
doc:adlm doc:nkoo gap The first comment in this issue is read by the gap-analysis document. i:cursive Cursive text l:ff Pular (Adlam) l:nqo N'Ko script & language p:advanced The gap-analysis priority is Advanced. s:adlm s:nkoo x:adlm x:alreq x:blink x:gecko x:nkoo

Comments

@r12a
Copy link
Contributor

r12a commented Jan 22, 2021

This issue is likely to apply to all cursive script text.

Text in 'cursive' writing systems is joined by overlapping glyphs with the appropriate joining forms. If those glyphs are made opaque, the joins should not become apparent. For example, N'Ko should look like this:

Screenshot 2022-02-01 at 15 02 18

The GAP

When opacity is applied to text, some browsers produce dark patches where the cursive glyphs overlap. Here is an example in the Adlam script.

Screenshot 2021-01-22 at 15 52 10

And here is an N'Ko example.

Screenshot 2021-02-16 at 09 01 14

Gecko and Blink browsers show the unwanted overlaps. WebKit works as expected for Arabic, Devanagari, Syriac & N'Ko, but not for Adlam (Fulah), Mongolian, or Hanifi Rohingya.

Tests

Interactive test, Applying opacity to cursive text doesn't produce dark patches where glyphs overlap

I18n test suite, Text opacity

Contains similar tests for Arabic and Mongolian text, with the same results, except that WebKit browsers don't display Mongolian as cursive text, so the test is moot in that case.

Action taken:

Issue, Add note for text opacity applied to cursive scripts Closed.

Browser bug reports:

GeckoBlinkWebKit

Outcomes:

2020-07-27: css-color was updated to clarify that opacity should be applied to a whole element, not to individual letters, so that this shouldn't happen.

Priority:

Marking as advanced, since this is a decorative feature.

@r12a r12a added doc:adlm gap The first comment in this issue is read by the gap-analysis document. i:cursive Cursive text p:advanced The gap-analysis priority is Advanced. labels Jan 22, 2021
@r12a
Copy link
Contributor Author

r12a commented Jan 22, 2021

The first comment in this issue contains text that will automatically appear in one or more gap-analysis documents as a subsection with the same title as this issue. Any edits made to that comment will be immediately available in the document. Proposals for changes or discussion of the content can be made in comments below this point.

Relevant gap analysis documents include:
AdlamArabic/PersianN'Ko

@xfq
Copy link
Member

xfq commented Nov 8, 2021

css-fonts should be css-color in the Specs section.

@r12a r12a added l:ff Pular (Adlam) s:nkoo s:adlm l:nqo N'Ko script & language labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc:adlm doc:nkoo gap The first comment in this issue is read by the gap-analysis document. i:cursive Cursive text l:ff Pular (Adlam) l:nqo N'Ko script & language p:advanced The gap-analysis priority is Advanced. s:adlm s:nkoo x:adlm x:alreq x:blink x:gecko x:nkoo
Projects
Status: Browser bug raised
Development

No branches or pull requests

2 participants