Browse Source

FEAT,DRAFT: change overflow behaviour to a handler

dev-feat-overflow_as_handler
chris 2 months ago
parent
commit
094bde0622
  1. 14
      src/handlers/overflow.js

14
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"
});
Loading…
Cancel
Save