Repository navigation
Use the HTML Standard UA stylesheet - #3867
Conversation
|
Implementation report: This task was pretty annoying to do without AI. Not for the coding itself, but for the repetitive task of scraping https://html.spec.whatwg.org/multipage/rendering.html into a CSS file, commenting about where each bit came from, commenting about the omitted bits, etc. I'm honestly not sure I got it 100% right, and might go back and have AI check it after the experiment. Similarly, the original issue (#3836) envisioned
But doing this by hand is kind of a fool's errand. If I was allowed to use AI for this task, I would love to throw this comparison problem at a couple of models and see what we got out. But without AI, I kind of just didn't do this. To be fair, what I realized while working on this issue in general is that both the old and new UA stylesheets were not working that well, due to limitations elsewhere in jsdom's CSS support. So I suspect that isn't wasn't too much that people might miss in the new UA stylesheet, because so much of the old one wasn't working as intended anyway. But it still would have been at least interesting, even if less actionable than I originally thought. I similarly am interested in trying this comparison after the experiment. |
|
Can we add a default font size something like this? I'm planning to tackle |
I think that should be done separately from the default UA stylesheet. Maybe In the specs they say the initial value is |
|
As far as I know, it's not explicitly stated in the spec. |
|
Yeah, it's just a question of where we implement it. I don't think it's a UA stylesheet rule, but instead a computed-value time thing. |
This is a bit messy since we don't have any specificity support, or various other features. But it's probably about as good as our existing stylesheet, which was pulled from a very old version of Chromium.
Closes #3836. Closes #2642.