Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-box-model] container shape property #1018

Open
excitedbox opened this issue Dec 29, 2020 · 0 comments
Open

[css-box-model] container shape property #1018

excitedbox opened this issue Dec 29, 2020 · 0 comments

Comments

@excitedbox
Copy link

excitedbox commented Dec 29, 2020

Summary: Instead of using Rectangular box containers and complex formatting rules to define content alignment defining a container as a polygon allows simpler content control. Much like clipping path is used for images it would extend the use to text and alignment. Many complex content alignments would currently require using svg (you loose text highlighting etc.) or complex computed alignment and transform rules.

Functionality: Define a container in the shape of a polygon to control content and element alignment, overflow, wrapping etc.

Use Cases:

  • IOT and Mobile devices with non rectangular displays (Smart watch, Human Machine Interfaces, Picture frames, etc)
  • Content alignment on a smart watch
  • IOT devices are slowly adopting JS and CSS GUIs and layout controls may need to be aligned in different configurations as on a PC or mobile phone
  • A triangular container would allow formatting text in a pyramid shape.
  • A Crescent shape could be used to align navigation buttons in an arc.
  • Displaying text with a circle shape through wrapping or overflow control
  • Reducing the number of alignment commands needed in animations and transforms (a wave, circle, rhombus shaped container would only need v and h alignment changes to animate several motions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant