From 094bde06229e8e37d4a04889ea08df7718cc136b Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 12 May 2025 11:37:56 +0200 Subject: [PATCH] FEAT,DRAFT: change overflow behaviour to a handler --- src/handlers/overflow.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/handlers/overflow.js diff --git a/src/handlers/overflow.js b/src/handlers/overflow.js new file mode 100644 index 0000000..9162ad7 --- /dev/null +++ b/src/handlers/overflow.js @@ -0,0 +1,14 @@ + +/** + * visible - Default.The overflow is not clipped.The content renders outside the element's box + * hidden - The overflow is clipped, and the rest of the content will be invisible + * scroll - The overflow is clipped, and a scrollbar is added to see the rest of the content + * auto - Similar to scroll, but it adds scrollbars only when necessary + */ +const Overflows = Object.freeze({ + visible: "visible", + hidden: "hidden", + scroll: "scroll", + auto: "auto" +}); +