Originally, editors with autoHeight set to false had an inline style of
100%. We attempted to retain this behavior while allowing CSS to change
the height by applying this styling via a global CSS rule instead:
unfortunately, however, this applies to non autoHeight editors as well
because due to our deprecated autoHeight detection routine, the height
of these editors must be assigned on an internal element and therefore
does not override the 100% styling from the stylesheet.
Signed-off-by: Nathan Sobo <nathan@github.com>
Previously, when autoHeight was assigned to false on the editor, we would assign an inline style of height: 100%. This preserves the essence of that behavior without prohibiting users from assigning their own height via more specific CSS rules.
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
Trying to style both modes of the text editor with the same style sheet
is proving to be more trouble than it’s worth. This prepares the shadow
DOM style sheet to diverge more radically to enable the background color
to be overridden from the outside more easily.
This prevents the need for a :host pseudo-class in the editor CSS which
breaks linting. It also fits selectors targeting the host element in a
more intuitive spot in the cascade.