Re:How to Write CSS That Works in Every Browser, Even the Ol...
by afarrell on Friday March 09, 2018 @02:38AM
(#16550317)
> they ignore your typos and unsupported features gracefully
I wish there was a browser version that would handle these errors loudly rather than silently. The fact that React does some of this is rather nice.
Re:How to Write CSS That Works in Every Browser, Even the Ol...
by blattimwind on Friday March 09, 2018 @05:55AM
(#16550988)
Browsers log CSS and JS errors. There was an Old-Firefox extension giving you error counts in the menu bar.
Re:How to Write CSS That Works in Every Browser, Even the Ol...
by pjmlp on Friday March 09, 2018 @02:55AM
(#16550373)
That was one of the goals of XHTML....
Re:How to Write CSS That Works in Every Browser, Even the Ol...
by yoz-y on Friday March 09, 2018 @05:13AM
(#16550851)
I find it quite baffling that we have gone to such lengths to make html/css resilient. I know of no other language/format that does this.
Can you, for example, make a half broken PDF and would it still render?
Re:How to Write CSS That Works in Every Browser, Even the Ol...
by apatters on Friday March 09, 2018 @05:22AM
(#16550882)
The ones doing the implementing are the browser vendors and it's a competitive disadvantage for them to not render every site on the web as best as they can. Consumers who come across a broken site will blame the browser and switch to a different one.
Re:How to Write CSS That Works in Every Browser, Even the Ol...
by yoz-y on Friday March 09, 2018 @06:26AM
(#16551065)
Haven't thought of that. It does make sense, the incentives are all wrong thinking about it. Publishers want the sites to be made quickly, browser vendors need market share and users have no patience and very low bar for acceptance.
Re:How to Write CSS That Works in Every Browser, Even the Ol...
by thristian on Friday March 09, 2018 @05:56AM
(#16550992)
At a previous job, a colleague was working on PDF parsing and rendering; he told me that Acrobat Reader will successfully load and display terrifyingly broken PDFs, and it's far more resilient than any of the open-source PDF-rendering tools.
So yeah, I bet you can.
Re:How to Write CSS That Works in Every Browser, Even the Ol...
by paulddraper on Friday March 09, 2018 @08:52PM
(#16556655)
Yes. Adobe in particular will accept a ton of crap
Re:How to Write CSS That Works in Every Browser, Even the Ol...
by my_ghola on Friday March 09, 2018 @11:34AM
(#16552872)
Php gets away with making many things warnings instead of errors. So it seems to have been made with the same mentality as html and css.
Re:How to Write CSS That Works in Every Browser, Even the Ol...
by taeric on Thursday March 08, 2018 @08:09PM
(#16549136)
The first point sorta sets you up for disaster, though. If you do it in css and it works in the browser you are testing, but not in an older one you support. Heaven help you if the person fixing the older browser doesn't take into account the interaction between the working css and the js they use to get it working in the older browser.
2. Leverage CSS override
3. Use browser devtools to test all browsers. No need install all older browser to check CSS. icanuse helps greatly too.
4. Use feature-queries for CSS.
These indeed can make your CSS code work for both the stone age and hottest browsers, all at the same time, without much hacking. Great videos.