Skip to content

[css-fonts-4] Remove duplication of UA requirements #12203

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

Open
annevk opened this issue May 16, 2025 · 6 comments
Open

[css-fonts-4] Remove duplication of UA requirements #12203

annevk opened this issue May 16, 2025 · 6 comments
Assignees
Labels
css-fonts-4 Current Work

Comments

@annevk
Copy link
Member

annevk commented May 16, 2025

https://drafts.csswg.org/css-fonts/#absolute-size-mapping duplicates requirements from the HTML standard. Perhaps it's okay as a non-normative section, but I think it would be clearer to just strike it and not have the duplication.

@annevk annevk added the css-fonts-4 Current Work label May 16, 2025
@svgeesus
Copy link
Contributor

Got a link to the specific section in HTML? I didn't see it in The h1, h2, h3, h4, h5, and h6 elements and didn't find a section on <font> in the TOC

@annevk
Copy link
Member Author

annevk commented May 16, 2025

If you search for xxx-large and h2 { you'll find the requirements. Which goes to show that these are not just duplicative, but wrong in case of h1 through h6 sizing. (At least wrong in that they don't match implementations.)

@svgeesus
Copy link
Contributor

Ok, got rules for parsing a legacy font size which is a subset of what is in CSS Fonts 4 (missing the scaling factor), and Sections and headings

@annevk
Copy link
Member Author

annevk commented May 16, 2025

That is a very good point. CSS does actually need to define the values completely, so this is less straightforward than I put it initially.

@svgeesus
Copy link
Contributor

I see the differences in sizes: where does 1.17 come from?

It seems useful to keep the relative sizes for the CSS keywords, but I can see the value in dropping the Hn row and linking to the HTML LS instead.

I also see the conflict with <font> size 1; 'x-small' in HTML, `'xx-small' in CSS.

@svgeesus svgeesus self-assigned this May 16, 2025
@annevk
Copy link
Member Author

annevk commented May 16, 2025

https://software.hixie.ch/utilities/js/live-dom-viewer/saved/13794 shows computed style. Which appears consistent between browsers and different between font and headings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-fonts-4 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants