Skip to content

Instantly share code, notes, and snippets.

@beetcb
Last active March 12, 2022 02:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beetcb/1e8bfae236492d8aeca815f2e3e8ccb2 to your computer and use it in GitHub Desktop.
Save beetcb/1e8bfae236492d8aeca815f2e3e8ccb2 to your computer and use it in GitHub Desktop.
Find Inherited props from W3C Spec.
// Shall be excuted in W3C latest props table's webpage
// Current link https://www.w3.org/TR/CSS22/propidx.html
[...document.querySelectorAll("tbody>tr") ?? []].reduce((acc, tr) => {
const inheritance = tr.querySelector("td:nth-child(5)")
if (inheritance?.innerHTML === "yes\n") {
acc.push(tr.querySelector("td:nth-child(1)")?.innerText)
}
return acc
}, [])
@beetcb
Copy link
Author

beetcb commented Mar 12, 2022

Updated Date:2022.03.12
Props length::41
Ref Page:https://www.w3.org/TR/CSS22/propidx.html

'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'

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