Today I had a brilliant idea! But of course, as Mark Twain said:
There is no such thing as a new idea.And dang it, he's right again.
My idea was to translate CSS selectors, which are sometimes super complex, into English. In other words, take something like this:
p:not(#foo) > input[type=radio]:checked + label:beforeAnd translate it to something like this:
Selects any content placed before a label element that immediately follows an input element with a type attribute that equals radio and that is a checked radio button or checkbox that is a child of a p element without an id attribute that equals foo.It would be pretty awesome to build a tool that would do this for me...oh wait, there already is one!
Thank you to whomever is responsible over at The Opal Group; now I can move on to the next (probably already existing) big idea.
No comments:
Post a Comment