diff --git a/src/corePlugins.js b/src/corePlugins.js index d32038d56cfc..b53fee6db575 100644 --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -1272,6 +1272,19 @@ export let corePlugins = { }) }, + scrollbarWidth: ({ addUtilities }) => { + addUtilities({ + '.scrollbar-auto': { 'scrollbar-width': 'auto' }, + '.scrollbar-thin': { 'scrollbar-width': 'thin' }, + '.scrollbar-none': { + 'scrollbar-width': 'none', + '&::-webkit-scrollbar': { + display: 'none', + }, + }, + }) + }, + textOverflow: ({ addUtilities }) => { addUtilities({ '.truncate': { overflow: 'hidden', 'text-overflow': 'ellipsis', 'white-space': 'nowrap' }, diff --git a/tests/raw-content.test.css b/tests/raw-content.test.css index 75ea33b87906..083f815e2852 100644 --- a/tests/raw-content.test.css +++ b/tests/raw-content.test.css @@ -367,6 +367,15 @@ .scroll-smooth { scroll-behavior: smooth; } +.scrollbar-thin { + scrollbar-width: thin; +} +.scrollbar-none { + scrollbar-width: none; +} +.scrollbar-none::-webkit-scrollbar { + display: none; +} .truncate { overflow: hidden; text-overflow: ellipsis; diff --git a/tests/raw-content.test.html b/tests/raw-content.test.html index 2cb65ed46810..b91bcef030f7 100644 --- a/tests/raw-content.test.html +++ b/tests/raw-content.test.html @@ -97,6 +97,8 @@
+ +