TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

WebKit fix: Quirk news.ycombinator to skip TextAutoSizing

213 pointsby mkurz11 months ago

16 comments

jraph11 months ago
Apparently it&#x27;s a workaround until <a href="https:&#x2F;&#x2F;bugs.webkit.org&#x2F;show_bug.cgi?id=275223" rel="nofollow">https:&#x2F;&#x2F;bugs.webkit.org&#x2F;show_bug.cgi?id=275223</a> is understood and fixed.<p>Seems more reasonable than how it looked at first.
评论 #40637967 未加载
评论 #40632622 未加载
matteason11 months ago
There are two previous discussions on WebKit&#x27;s Quirks.cpp [0] here:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33207685">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33207685</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26165357">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26165357</a><p>I wonder how big your site has to be to earn a spot in that file when you hit a Safari bug. Don&#x27;t suppose Apple publish the criteria anywhere?<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;WebKit&#x2F;WebKit&#x2F;blob&#x2F;84ae355619354ee1bfa7daaa1fc95565a6726be3&#x2F;Source&#x2F;WebCore&#x2F;page&#x2F;Quirks.cpp">https:&#x2F;&#x2F;github.com&#x2F;WebKit&#x2F;WebKit&#x2F;blob&#x2F;84ae355619354ee1bfa7da...</a>
评论 #40631851 未加载
its-summertime11 months ago
Looking at the html of HN&#x27;s pages, can&#x27;t blame them really.<p>Running though <a href="https:&#x2F;&#x2F;validator.w3.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;validator.w3.org&#x2F;</a> , the result is abysmal.<p>At this rate, if web browsers started requiring sites to output HTML that is somewhere in the realm of normalcy, HN would sooner shut down than consider ever updating.
评论 #40631675 未加载
评论 #40632408 未加载
评论 #40631708 未加载
评论 #40632589 未加载
paulgb11 months ago
I imagine there are some stories out there of people tearing their hair out over issues in prod can’t be reproduced in localhost (or vice versa) due to quirks exceptions.
评论 #40632061 未加载
评论 #40631702 未加载
tda11 months ago
I seriously thought that implementing some site specific custom rendering behaviour was meant as a joke. Why change html&#x2F;css for a website when you can just implement some hardcoded site specific behaviour straight in the rendering engine? What could possibly go wrong?<p>But after having a closer look at the PR, the 1900 LOC monstrosity Quirks.cpp actually seems to exist with lots of things like<p><pre><code> if (host == &quot;tripadvisor.com&quot;_s || host.endsWith(&quot;.tripadvisor.com&quot;_s)) m_needsRelaxedCorsMixedContentCheckQuirk = true; </code></pre> Fixing CORS issues has never been easier
评论 #40631646 未加载
评论 #40632682 未加载
评论 #40632308 未加载
评论 #40632110 未加载
评论 #40632284 未加载
maybevain11 months ago
Interestingly there seems to be a few quirks for twitter.com, but none for x.com. I assume that&#x27;ll lead to some regressions?
评论 #40632069 未加载
lapcat11 months ago
Unfortunately these hacks last forever and can cause other problems. My web browser extension had to add a hack to work around WebKit&#x27;s YouTube hack: <a href="https:&#x2F;&#x2F;bugs.webkit.org&#x2F;show_bug.cgi?id=245612" rel="nofollow">https:&#x2F;&#x2F;bugs.webkit.org&#x2F;show_bug.cgi?id=245612</a>
nottorp11 months ago
&gt; we can quirk TextAutoSizing to skip adjusting for it, at least until we figure out why we are calculating RenderBlockFlow width inconsistently:<p>Looks like it&#x27;s a bug on their side and this is a bandaid?<p>That will presumably live forever.
bob102911 months ago
I am confused. What part of the hacker news web source was more difficult to change than the source code for my web browser?
onion2k11 months ago
This feels like a poor solution to the problem. As much as I like HN, browsers changing to maintain the status quo is a terrible idea. <i>At the very least</i> there should be a user controllable array of domains to apply this to in the config rather than a single magic string for one website.
emursebrian11 months ago
Do other browser vendors add special cases in their codebase for specific sites? It seems like a really bad idea.<p>Since around 2020, I&#x27;ve been working on an app that makes heavy use of audio playback and recording. I feel like I am frequently making Safari specific updates because <i>something</i> related media playback or recording stopped working on Safari.<p>I don&#x27;t recall this kind of regression ever happening with Chromium-based browsers or Firefox. It feels weird in 2024 to be adding work-arounds and hacks specific web browsers and anecdotally, it seems to be getting worse.<p>See <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40134383">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40134383</a>. On BrowserStack, still no Safari dev tools on iOS 17.4+
评论 #40632942 未加载
formerly_proven11 months ago
Is this triggered by HN being a table-based layout? Shouldn&#x27;t this then affect way more sites?
评论 #40631659 未加载
glonq11 months ago
TIL that <i>it&#x27;s not just me</i> who finds the default text size on HN to be excruciatingly tiny. I&#x27;d presumed that it was just an unfortunate side-effect of aging and poor vision!
评论 #40635820 未加载
rob11 months ago
Awesome, time to submit a ticket to WebKit to auto-adjust HN&#x27;s default text size to 16px like everybody else instead of 12px. It made sense in 2007 when your resolution was 1024x768.
评论 #40632805 未加载
评论 #40634822 未加载
评论 #40632771 未加载
评论 #40632486 未加载
syngrog6611 months ago
A quick glance at the title made me hope HN would finally allow screen-responsive auto-wrap of text lines. Its 2024 now and we know a thing or two about good vs bad UX.
Kiro11 months ago
OT but what&#x27;s up with the spam comments? What&#x27;s the purpose?