Headlines on the mobile version of arstechnica.com have odd spacing
Categories
(Web Compatibility :: Site Reports, defect, P3)
Tracking
(firefox-esr115 unaffected, firefox124 unaffected, firefox125 disabled, firefox126 disabled)
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox124 | --- | unaffected |
| firefox125 | --- | disabled |
| firefox126 | --- | disabled |
People
(Reporter: denschub, Unassigned)
References
(Regression, )
Details
(5 keywords, Whiteboard: [webcompat:needs-knowledgebase])
User Story
platform:android impact:minor-visual affects:all
Attachments
(1 file)
|
1.38 MB,
image/jpeg
|
Details |
With bug 1883896 in effect (layout.css.h1-in-section-ua-styles.enabled=false, default in Nightly only), the headlines on https://arstechnica.com have an odd spacing.
The headlines are a link inside an h1, and they do style the font size and line height of the <a>, but not the <h1>. With the old UA stylesheet in place, the rule that would set the font size was
:is(article, aside, nav, section)
:is(article, aside, nav, section)
:is(article, aside, nav, section)
h1 {
font-size: 1.00em;
}
That rule is now gone in Nightly, falling back to the default font-size of 2em, which is what's driving the increase in effective line height.
We could easily ship an intervention containing
body.mobile-view .archive-list li article.in-column h1 {
font-size: 1em;
}
but given this is a change in the UA stylesheet, this could have a widespread effect.
| Reporter | ||
Comment 1•2 years ago
|
||
Simon, given we have no commitment from other vendors to ship a similar thing, I don't think we can be the leader here - this has the potential of breaking a lot of things in annoying ways. What's your opinion here?
| Reporter | ||
Updated•2 years ago
|
Comment 2•2 years ago
|
||
Indeed we can't go ahead and ship this to stable without other browsers onboard, and ideally ship at the same time.
If we get many bug reports about this while affecting only Nightly, then we should conclude this as a failed experiment and revert the change.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•1 year ago
|
Comment 3•1 year ago
|
||
I've tried contacting them via https://arstechnica.com/contact-us/
Updated•1 year ago
|
Comment 4•1 year ago
|
||
Got a reply:
Hi Simon,
Thanks very much for sending this along. We have a new redesign rolling out very soon which will explicitly set margins.
Cheers,
Ars
| Reporter | ||
Updated•1 year ago
|
Comment 5•1 year ago
|
||
Their current CSS sets margin: 0 on h1, but doesn't set font-size so the issue is still present. I've contacted them again.
Comment 6•1 year ago
|
||
I forgot to update here, but I received a reply:
Hi there,
We have an update coming very soon that should address this font-size issue as well.
Thanks for looking out,
Ars
It looks like the new update has rolled out, and there's now only one h1 in main but it has class="sr-only" and so isn't rendered visually.
| Reporter | ||
Updated•1 year ago
|
Description
•