Last active
March 12, 2022 02:23
-
-
Save beetcb/1e8bfae236492d8aeca815f2e3e8ccb2 to your computer and use it in GitHub Desktop.
Find Inherited props from W3C Spec.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |
}, []) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated Date:
2022.03.12
Props length::41
Ref Page:https://www.w3.org/TR/CSS22/propidx.html