Swiftgram/docs/_docs/layout2-web-flexbox-differences.md
Garrett Moon 5c8b31684a Rename AsyncDisplayKit to Texture (#4)
* Rename AsyncDisplayKit to Texture

* More renaming
2017-04-14 09:37:38 -07:00

1.3 KiB
Executable File

title layout permalink
Web Flexbox Differences docs /docs/layout2-web-flexbox-differences.html

The goal of Texture's Layout API is not to re-implement all of CSS. It only targets a subset of CSS and Flexbox container, and there are no plans to implement support for tables, floats, or any other CSS concepts. The Texture Layout API also does not plan to support styling properties which do not affect layout such as color or background properties.

The layout system tries to stay as close as possible to CSS. There are, however, certain cases where it differs from the web, these include:

Naming properties

Certain properties have a different naming as on the web. For example min-height equivalent is the minHeight property. The full list of properties that control layout is documented in the Layout Properties section.

No margin / padding properties

Layoutables don't have a padding or margin property. Instead wrapping a layoutable within an ASInsetLayoutSpec to apply padding or margin to the layoutable is the recommended way. See ASInsetLayout section for more information.

Missing features

Certain features are not supported currently. See Layout Properties for the full list of properties that are supported.