|
|
|
|
|
by andrewmcwatters
1157 days ago
|
|
None of this would be so difficult if the CSS specifications were well defined. But they’re not, so we all have to more or less guess what the intrinsic algorithms for drawing fundamental aspects of the web are supposed to be. Such a failure of the CSS specs. |
|
That complexity does lead to bugs (and bugs in Chrome can become part of the de-facto standard if the Chrome devs don't fix the bug fast enough) but the spec itself seems quite complete in most areas. In the few areas that are underspecified, simply seeing what other browsers do usually fixes the problem as there's usually an overlap in behaviour between at least two out of three remaining browser render engines.
The basic algorithms and rendering steps are all laid out pretty well in the spec. Even Quirks Mode has a standard (https://quirks.spec.whatwg.org/), though that's far from complete as every browser has its own compatibility quirks because of browser detection and branded CSS properties.
I know CSS documentation used to be awful, but the current version of the WHATWG spec is quite readable in my opinion and doesn't leave as much room for confusion anymore.