Skip to content

[css-page-float] float property syntax #1251

@MurakamiShinyu

Description

@MurakamiShinyu

Current spec:
https://drafts.csswg.org/css-page-floats/#float-property

I think the following syntax would be better for further extensibility:

float: none | [ block-start || block-end || inline-start || inline-end || 
                left || right || top || bottom ]

Examples:

float: top;        // float to top edge
float: top left;   // float to top left corner
float: top bottom; // float to top or bottom edge (like 'snap-block' in old proposal)
float: left right; // float to left or right edge (like 'snap-inline' in old proposal)
float: top bottom left;       // float to top left or bottom left corner
float: top bottom left right; // float to top left, top right, bottom left, 
                              // or bottom right corner

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions