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

Add backdrop-filter to Autoprefixer webkit #510

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/runtime/native/Autoprefixer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ let prefix rule =
| Declaration (("filter" as property), value)
| Declaration (("clip-path" as property), value)
| Declaration (("backface-visibility" as property), value)
| Declaration (("backdrop-filter" as property), value)
| Declaration (("column" as property), value)
| Declaration (("box-decoration-break" as property), value)
| Declaration
Expand Down
8 changes: 7 additions & 1 deletion packages/runtime/test/test_autoprefixer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ let animation_duration =
"-webkit-animation-iteration-count: infinite; \
animation-iteration-count: infinite;")

let backdrop_filter =
test "backdrop_filter" (fun () ->
prefix_one_declaration
(CSS.backdropFilter [| `blur (`px 30) |])
"-webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);")

let tests =
( "Autoprefixer",
[ text_size_adjust; text_decoration; display_grid; animation_duration ] )
[ text_size_adjust; text_decoration; display_grid; animation_duration; backdrop_filter ] )
Loading