t7 / construct.css Goto Github PK
View Code? Open in Web Editor NEWFocus on the content and structure of your HTML
Home Page: https://t7.github.io/construct.css
License: MIT License
Focus on the content and structure of your HTML
Home Page: https://t7.github.io/construct.css
License: MIT License
I loaded up https://t7.github.io/trashy.css/ in Safari and was able to get it to work. I then copied the URL from the Safari Bookmarklet to Chrome and noticed that the whitespaces need to be encoded for it to work in Chrome. Anyone else have this problem?
Dragging the bookmarklet link from the page into the bookmarks bar does not work for me.
I've tried Trashy.css out on a few sites, and one thing I noticed is that it incorrectly indicates some errors on description lists.
A description list is permitted by spec to contain divs, which is a useful thing for styling discrete term-description groups. E.g.,:
<dl>
<div>
<dt>Foo</dt>
<dd>Bar baz.</dd>
</div>
<div>
<dt>Lorem</dt>
<dd>Ipsum dolor sit amet.</dd>
<dd>Also, yadda yadda yadda.</dd>
</div>
</dl>
Trashy.css currently flags two errors on description lists that use divs in this way:
<dt>
is missing a parent of <dl>
<dl>
must be <dt>
or <dd>
The immediate child of a <dl>
really should be either a <div>
or a grouping of one or more <dt>
s and <dd>
s, but I can't imagine that's as easy to check for. But <dd>
alone as the immediate child violates the content model.
Hello I read about trashy css and saved the bookmark in September from this URL
https://css-tricks.com/introducing-trashy-css/
Recently, when I try to use it it doesn't work, is this because the name of the repo has changed?
Or is it since updating to Chrome 70?
Here is the code I've saved in the bookmark:
javascript:( function (d) { var f = Array.prototype.forEach; var linkTags = d.querySelectorAll('[rel=\'stylesheet\']'); var styleTags = d.querySelectorAll('style'); f.call(linkTags, function (x) { x.rel = ''; }); f.call(styleTags, function (x) { x.innerHTML = ''; }); var newLink = d.createElement('link'); newLink.rel = 'stylesheet'; newLink.href = 'https://t7.github.io/trashy.css/css/bookmarklet.css'; d.head.appendChild(newLink); } )(document);
Thanks for the help Rob
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.