Live data from Hacker News

A div that looks different in every browser

twitter.com

101–110 of 133 posts

Re: A div that looks different in every browser

#101
post #86
post #62

Earlier quoted context omitted.

This is what us older people would like to believe. Meanwhile the young webdevs are having a blast ignoring us and building the apps of the future.

Yeah and then they all jump around React as some amazing achievement, having rediscovereed how 90's native UI do event handling.

and think vi is great

Re: A div that looks different in every browser

#104
post #2

On one hand I think this is really neat. On the other this is why I have never taken front end development seriously enough to spend any real time learning it [0]. From the get go it always seemed like the rules were arbitrary and involved lots of guessing to get things right. I know this isn't actually true but it felt true enough early on to poison my mind to it. [0] Not something I'm proud of and I know front end…

" I know this isn't actually true " It's true. A confluence of vague definitions, poor implementations, bad documentation ... and this is the web we have. It's the tip of the iceberg, and the painful life of anyone doing html5 work, it's 'not fun' for anyone who's been exposed to regular programming because the problems you spend your day solving mostly should not be problems to begin with.

I take it you don't think much of the various libraries/indirection layers/frameworks that are meant to save you from browser-specific tuning?

Re: A div that looks different in every browser

#105
post #86
post #62

Earlier quoted context omitted.

This is what us older people would like to believe. Meanwhile the young webdevs are having a blast ignoring us and building the apps of the future.

Yeah and then they all jump around React as some amazing achievement, having rediscovereed how 90's native UI do event handling.

Event handling isn't special in React. One-way data flow and UI-as-a-function-of-state are. Which 90s native UI toolkits do that?

Re: A div that looks different in every browser

#106
post #105
post #86

Earlier quoted context omitted.

Yeah and then they all jump around React as some amazing achievement, having rediscovereed how 90's native UI do event handling.

Event handling isn't special in React. One-way data flow and UI-as-a-function-of-state are. Which 90s native UI toolkits do that?

"Flux is the new WndProc"

https://news.ycombinator.com/item?id=10381015

Re: A div that looks different in every browser

#107

Earlier quoted context omitted.

Yes. But are you going to to use 3 to 5 or mote C++ compilers on a given project? The worst part of these frontend issues is, ultimately, the UX can become inconsistent, if not mess. Given that nearly everyone interfaces via the visual UI, you'd think we'd have this sorted out by now.

If your project is a library, I'd expect that people are gonna use it with, like, maybe not 5 but probably 2 or 3 different compilers, and they're gonna be less diligent about upgrading their compiler versions than mainstream browser users.

Thanks. I wasn't thinking about it that way. Good point.

That said, the browser's impact on UX is essential. A lot more people use browsers than compilers. You'd think the UX would matter by now.

Re: A div that looks different in every browser

#108
post #63

Earlier quoted context omitted.

Doesn't work unless you have an extra container div.

Sure, because "vertically centered" means relative to what?

I want the contents of my div to be centered inside my div.

Just like works, but vertically. You don't need content for horizontal centering. I consider it a layering violation to have to do that nesting.

Re: A div that looks different in every browser

#109

Earlier quoted context omitted.

Doesn't work unless you have an extra container div.

This is true, but every 'modern' DOM that I've seen has loads of extra container divs precisely to allow post hoc layout.

To be fair though, this has been a problem for quite some time and mostly stems from many web devs not understanding block and inline correctly and thus applying unneeded divs everywhere even there are enough hooks for their styles already.

Re: A div that looks different in every browser

#110
post #53
post #17

And here's what it looks like in Servo: https://i.imgur.com/lv3xRhi.png

I was 50/50 on whether this would be a legitimate rendering or a cheeky screencap of a panic message. :P

What I found interesting was that I later noticed Matt Brubeck had already done the same thing a couple of days earlier [0], yet mine in the nightly I'd just downloaded was already different.

[0] https://twitter.com/mbrubeck/status/1015310959789740032

Post reply on HN