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

WIP implement localized quotes #49835

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

servo-wpt-sync
Copy link
Collaborator

Implement quotes. Generate correct quote characters that matches the locale. It's done by enabling the quotes.css UA style sheet.

Note: Quote depth calculation is not supported yet.

Problems: using a UA sheet for default quote characters doesn't seem like the right approach because:

  • It doesn't support the auto value
  • It matches every element and therefore doesn't allow author-defined values to properly inherit

The above issues might be mitigated if we let the UA sheet set an internal property instead of the quote property directly. Nevertheless, it still matches every element and therefore may cause a performance hit.

The proper approach seem to be adding quotes support to the icu crate. Should we do that instead?

Reviewed in servo/servo#34770

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Servo project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants