Skip to content

Loading…

More element picker style inheritance #314

Closed
pwstokes225 opened this Issue · 4 comments

1 participant

@pwstokes225

On https://jquery.com/, the element picker <textarea> inherits a min-height, resulting in an overlap:
Overlap

@pwstokes225 pwstokes225 changed the title from Element picker textarea height to More element picker style inheritance
@pwstokes225

On http://maxcdn.com/, <button> inherits a min-height making buttons larger than usual:
Button height

Additionally, the buttons also move when clicked:
Button movement
I don't understand the details here, but their inherited relative position seems to have an effect on this.

@pwstokes225

<textarea> can also inherit rounded edges as well as various coloured borders and shadows.

Default style (both on and off focus):
default

https://github.com/ (off focus):
githuboff

https://github.com/ (on focus):
githubon

http://maxcdn.com/ (off focus):
maxcdnoff

http://maxcdn.com/ (on focus):
maxcdnon

These visual differences tend to be subtle. Though the last example shows that they can potentially be blatant.

@pwstokes225

On http://intel.com/, <textarea> inherits a font-family, font-size and line-height and <ul> inherits a margin-top and margin-bottom:
intel

@pwstokes225

On http://jsperf.com/, <button> has a blue gradient when hovered over:
jsperf

@gorhill gorhill added a commit that closed this issue
@gorhill gorhill this fixes #314 65a9e38
@gorhill gorhill closed this in 65a9e38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.