4 ms·
If you are seeking tutorials, or UI libraries etc, sorry, I can't help you with that as I am unaware of those things. However, if you are asking from which aspe
by p333347 10y ago
If you are seeking tutorials, or UI libraries etc, sorry, I can't help you with that as I am unaware of those things. However, if you are asking from which aspect to start building one from scratch, I would say start with layouting. Try implementing a tiny subset of div related things like position and display and see if this is what you want to spend your time working on. Even if you can crack this thing easily, remember, this is just the tip of the iceberg. I am not discouraging you, but know that you would have to digest the entire DOM and HTML spec, not to mention have a JavaScript engine and implement all the security related intricacies, at the least, for your software to become a web browser.
- anatoly 10y agoI'm curious: is there a ready-to-use set of tests for a layout engine that checks conformance with the specs? Something that you could, without much effort, run against a toy layout engine you'd write? I know Webkit/Blink have humongous test suites, but these probably aren't easy to adapt to a toy layout engine.
- chiefofgxbxl 10y agoThere's something like Acid3, but it doesn't give you information as to what failed when you get a less-than-perfect score. (Test: http://acid3.acidtests.org/ http://acid3.acidtests.org/ | Information: http://www.webstandards.org/action/acid3/ http://www.webstandards.org/action/acid3/) There are also all those other browser benchmarks (e.g. http://peacekeeper.futuremark.com/ http://peacekeeper.futuremark.com/), but those include things other than the layout engine, such as javascript performance, webGL, etc. You could try poking around a few of them and only looking at the CSS and DOM sections though (http://web.basemark.com/ http://web.basemark.com/).
- zokier 10y agoW3C Web Platform Tests probably would be best starting point. http://testthewebforward.org/ http://testthewebforward.org/