Swiftgram/submodules/AsyncDisplayKit/docs/_docs/layout2-web-flexbox-differences.md
Peter 9bc996374f Add 'submodules/AsyncDisplayKit/' from commit '02bedc12816e251ad71777f9d2578329b6d2bef6'
git-subtree-dir: submodules/AsyncDisplayKit
git-subtree-mainline: d06f423e0ed3df1fed9bd10d79ee312a9179b632
git-subtree-split: 02bedc12816e251ad71777f9d2578329b6d2bef6
2019-06-11 18:42:43 +01: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.