WebKit的一个纯JavaScript移植:webkit.js
webkit.js 是一个体验版的 WebKit 的 纯 JavaScript 移植版本,可运行在 Node.js 和浏览器中。
目标:
- 生成纯JavaScript渲染器,支持渲染到WebGL/Canvas 上下文。
- 开发一个框架用于图像/网页捕获和自动化web测试(类似于PhantomJS)。
- 开发一个框架用于用于原型CSS滤镜,HTML元素和属性。
- 纯JavaScript渲染性能。
- 在nodejs中开一个基于 javascript 的浏览器(只是为了好玩)。
状态
Toolchain
- (BAD) Currently will only compile with Emscripten 1.8.2 on MacOSX in Xcode.
Building
- (GOOD) Currently the latest nightly WebKit builds.
Linking
- (HORRIFIC) There are plenty of linking issues to be addressed; however visibility into this is minimal. Currently the system links but has quite a few unresolved symbols that will cause the renderer to crash.
Tests
- (NON EXISTANT) Tests for javascript<->C++ needs to be developed (non-layout related code)
- (BAD) Unit tests that integrate with WebKit's LayoutTests
支持的特性
-
(GOOD) Features that are not currently supported:
- Accelerated 2D Canvas
- CSS Image Resolution
- CSS Image Orientation
- CSS3 Text
- Draggable Regions
- Encrypted Media
- Font Load Events
- Input Speech
- Audio
- Video
- Media Streams
- JavaScript Debugger / Inspector
- MHTML
- PDF/PDFKit
- Quota's
- Web Workers
- Web Sockets
- Shadow DOM
- Web Timing
- XSLT
- Native Widgets (IFRAME, Buttons, Text Boxes, etc.)
- Any Resource Loaders
- Font Rendering
本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!