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

feat: Support extended CSS Page float values such as float: top right #1444

Merged
merged 3 commits into from
Jan 17, 2025

Conversation

MurakamiShinyu
Copy link
Member

@MurakamiShinyu MurakamiShinyu commented Jan 16, 2025

  • feat: Support extended CSS Page float values such as float: top right
    • Supports the new float property syntax proposal [css-page-float] float property syntax w3c/csswg-drafts#1251

      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
      
    • Improves fit-content inline size determination for inline-start/end or two sides (e.g. top right) page floats.

    • Resolves Update CSS Page Floats #543

  • feat: support logical values for CSS clear property (e.g. clear: inline-start)

Copy link

vercel bot commented Jan 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vivliostyle ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2025 2:32pm

- Supports the new float property syntax proposal w3c/csswg-drafts#1251
- Improves fit-content inline size determination for inline-start/end or two sides (e.g. top right) page floats.
- Resolves #543
@MurakamiShinyu MurakamiShinyu merged commit 5b094aa into master Jan 17, 2025
4 of 5 checks passed
@MurakamiShinyu MurakamiShinyu deleted the feat/page-float-update branch January 17, 2025 14:32
@MurakamiShinyu
Copy link
Member Author

Test

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

Successfully merging this pull request may close these issues.

Update CSS Page Floats
1 participant