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

content() function captures text after text-transform #343

Closed
mdekstrand opened this issue Aug 12, 2016 · 1 comment
Closed

content() function captures text after text-transform #343

mdekstrand opened this issue Aug 12, 2016 · 1 comment

Comments

@mdekstrand
Copy link

With the following effective rule:

h1 {
    text-transform: uppercase;
    -weasy-string-set: section content();
}

Weasyprint sets the section register/variable to the uppercased version of the <h1>'s content, instead of the original lowercase version.

I am not entirely sure if I am right about the expected behavior, but the CSS Text Transformation spec says this about text-transform:

This property transforms text for styling purposes. (It has no effect on the underlying content.)

This suggests to me that content() should return the untransformed text. The definition of content() does not shed light on this matter.

@liZe
Copy link
Member

liZe commented Aug 16, 2016

Thanks for reporting! This issue is a duplicate of #137.

@liZe liZe closed this as completed Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants