Skip to content

Instantly share code, notes, and snippets.

@dcneiner
Created August 10, 2011 17:48
Show Gist options
  • Save dcneiner/1137601 to your computer and use it in GitHub Desktop.
Save dcneiner/1137601 to your computer and use it in GitHub Desktop.
List of Inherited CSS
Consolidated lists of CSS properties that are inherited by default.
Taken from http://www.w3.org/TR/CSS21/propidx.html
--------------------------------------------------------------------
One item not in the list was "text-decoration" which affects child elements. A few new properties (text-shadow) also affect child elements
List
azimuth
border-collapse
border-spacing
caption-side
color
cursor
direction
elevation
empty-cells
font-family
font-size
font-style
font-variant
font-weight
font
letter-spacing
line-height
list-style-image
list-style-position
list-style-type
list-style
orphans
pitch-range
pitch
quotes
richness
speak-header
speak-numeral
speak-punctuation
speak
speech-rate
stress
text-align
text-indent
text-transform
visibility
voice-family
volume
white-space
widows
word-spacing
@Tiaraha-funny
Copy link

Thanks for solving my problem about inheritance.

@trusktr
Copy link

trusktr commented Aug 17, 2022

Missing pointer-events

@Njoxpy
Copy link

Njoxpy commented Apr 6, 2023

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment