Skip to content

Commit

Permalink
feat: support anchor positioning (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsuyoshi84 authored Jun 24, 2024
1 parent c355b07 commit 80fe356
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ function position() {
'inset',
inline_block('inset').flatMap(start_end),

// anchor
'anchor-name',
'position-anchor',
'position-try-options',
'position-visibility',
'inset-area',

// flow control
'float',
'clear',
Expand Down
7 changes: 7 additions & 0 deletions test/test.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
inset-block-start: 0;
inset-block-end: 0;

/* anchor */
anchor-name: --test;
position-anchor: --test;
position-try-options: flip-block;
position-visibility: anchors-visible;
inset-area: bottom;

/* flow control */
float: none;
clear: none;
Expand Down

0 comments on commit 80fe356

Please sign in to comment.