-
-
Some Content
- Was Entered
-
+Textareas must be visible for the library to function properly. The library creates a textarea clone with identical dimensions to that of the original. It therefore requires that the textarea be in place in the DOM for these dimensions to be correct.
-## Running Tests Locally
+Any styling applied to the target textarea will be maintained with the exception of margins and widths. (Margins are reset to 0 to ensure that the textarea maintains the correct size and positioning.)
-**Browser**: open `test/index.html`
+After the expanding behavior has been applied, the textarea will appear like a block-level element: its width will expand to fill its container. To restrict the textarea width, apply a width declaration to a parent element. The library's wrapper (`.expanding-wrapper`) element may be useful in this case:
-**Command line**: make sure you have installed [node.js](http://nodejs.org/), and [grunt-cli](http://gruntjs.com/getting-started), then run:
+```css
+.expanding-wrapper {
+ width: 50%;
+}
+```
- $ npm install
+[Flash of unstyled content](http://en.wikipedia.org/wiki/Flash_of_unstyled_content) can be avoided by adding the following styles (adjust the selector as necessary):
-Followed by:
+```css
+textarea.expanding {
+ margin: 0;
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+ width: 100%;
+}
+```
- $ grunt test
+Browser Support
+---------------
-## Continuous Deployment
+The library aims to support modern versions of the following browsers: Chrome, Firefox, IE (9+), Opera, and Safari (incl. iOS). View [the test suite](http://bgrins.github.io/ExpandingTextareas/test/) to see if check if your browser is fully supported. (If there are no failures then you're good to go!)
-View tests online at: https://travis-ci.org/bgrins/ExpandingTextareas.
+Development & Testing
+---------------------
-[![Build Status](https://travis-ci.org/bgrins/ExpandingTextareas.svg?branch=master)](https://travis-ci.org/bgrins/ExpandingTextareas)
+This library has been developed with ES2015 modules and bundled with [Rollup](http://rollupjs.org). To get started with development, first clone the project:
+
+```
+git clone git@github.com:bgrins/ExpandingTextareas.git
+```
+
+Then navigate to the project and install the dependencies:
+
+```
+cd ExpandingTextareas
+npm install
+```
+
+To bundle the source files:
+
+```
+npm run build
+```
+
+And finally to test:
+
+```
+npm test
+```
+
+Run the tests in a browser by opening `test/index.html`.
diff --git a/bower.json b/bower.json
index 1b44a8e..5366ba8 100644
--- a/bower.json
+++ b/bower.json
@@ -6,7 +6,7 @@
"Brian Grinstead