Emil Sjolander a43b813517 Add test generation scripts
Summary:
Add first version of test generation script. Currently works for most layouts and styles. Probably has a bunch of broken edge-case.

Usage:
$ gentest/gentest.sh
<Enter HTML with inline styles> e.g. <div style="width: 100px; height: 100px;"></div>
Open chrome dev tools console tab.
Copy code from console into file and save.
Run buck test //:CSSLayout

Differential Revision: D3697812

fbshipit-source-id: e6809f95bf6782e7e2cc47b9cdd3a25a13163c5c
2016-08-11 11:52:44 -07:00
2016-08-11 11:52:44 -07:00
2016-08-10 05:22:32 -07:00
2016-08-10 08:37:46 -07:00
2016-08-10 05:22:32 -07:00
2016-08-11 11:52:44 -07:00
2016-08-11 11:52:44 -07:00
2016-08-10 08:37:46 -07:00
2016-08-11 03:07:51 -07:00
2016-08-04 08:23:01 -07:00
2016-08-04 08:23:02 -07:00
2015-04-10 12:14:30 -07:00
2016-08-02 08:08:09 -07:00

CSSLayout Build Status

css-layout is currently in the process of big changes. If you are looking at using the latest stable version please have a look at the `deprecated` branch. This includes a js version and a C-sharp version not currently available on master.

CSSLayout is a cross platform implementation of the flexbox specification. CSSLayout targets native mobile development and is therefor disconnected from the web browser. CSSLayout is implemented in C for portability reasons and uses JNI to expose public methods to Java.

See CSSLayout/CSSLayout.h for a look at the public API being exposed.

Building

CSSLayout builds with buck (buckbuild.com). To build run buck build //:CSSLayout and run buck test //:CSSLayout to run the test suite. For java the equivalent is buck build //:CSSLayout_java and buck test //:CSSLayout_java.

To run benchmarks run buck run //:CSSLayout:benchmark. There are currently no benchmarks for the java version.

Description
Yoga is an embeddable layout engine targeting web standards.
Readme MIT 37 MiB
Yoga 3.2.1 Latest
2024-12-12 17:41:47 -08:00
Languages
C++ 46.4%
Java 25.2%
TypeScript 23.1%
HTML 2.6%
JavaScript 1%
Other 1.6%