Steps to replicate the issue (include links if applicable):
The construction of the html content of the page has changed and I am not finding a way to circumvent the problematic html to reapply a templatestyle that was previously used to style the headers on the page.
- The page is created using Listeria with row templates.
- Example page: https://meta.wikimedia.org/wiki/Wiki_Loves_Living_Heritage/Elements_2024
- The header text inside the h3 tag is wrapped inside two closing span tags. There might be additional line feeds.
<h3 id="kente_cloth" data-mw-thread-id="h-kente_cloth-New_2024_Living_Heritage_Elements"><span data-mw-comment-start="" id="h-kente_cloth-New_2024_Living_Heritage_Elements"></span>kente cloth<span data-mw-comment-end="h-kente_cloth-New_2024_Living_Heritage_Elements"></span></h3>
- I have tried several ways to address the text in the stylesheet in https://meta.wikimedia.org/wiki/Template:Wiki_Loves_Living_Heritage/style.css
h1::first-letter, h1 span::first-letter, h1 span + ::first-letter, h2::first-letter, h2 span::first-letter, h2 span + ::first-letter, h3::first-letter, h3 span::first-letter, h3 span + ::first-letter, h4::first-letter, h4 span::first-letter, h4 span + ::first-letter, h5::first-letter, h5 span::first-letter, h5 span + ::first-letter{
text-transform: capitalize;
}What happens?:
The text remains lowercase when the source text is lowercase
What should have happened instead?:
All headers should start with a capital letter
PS. I think there should be a tag and a project for Listeria, as it is a widely used component in the wikis.
