Giter VIP home page Giter VIP logo

decss3's Introduction

Enhanced HTML Best Viewed with Any Browser Real Player Free

decss3's People

Contributors

calvein avatar davatron5000 avatar paulirish avatar slexaxton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

decss3's Issues

Firefox/Opera Security Error

deCSS3 won't work on Firefox due to the inability to access document.styleSheets[i].cssRules from a cross browser script. this is a bit of a bummer. Hopefully there's a workaround.

Selectors

The reason I ultimately gave up on mine was that selectors are way harder to remove than properties and values. Ultimately it would be cool if this could negate selectors...

li:nth-last-child(2) {
     font-weight: bold;
}

so I guess it would find that, and either somehow remove it or go through each property and negate it:

li:nth-last-child(2) {
     font-weight: normal;
}

get security error in Firefox

Security error
[Break On This Error] if ( ! stylesheet.cssRules ) {

deCSS3...6324741 (line 105)

I dragged the bookmark to my toolbar in Firefox 9 and clicked it, result was the above error.

the site is behind a firewall if that makes any difference.

I don't know how to revert so good.

Most of the commits on this are markdown edits. And that's just tragic. If anyone wants to help prune/rebase/merge those edit, let me know.

The Last Four No's

If just injecting CSS isn't too lame, this should get the last four No's you have listed:

animation

* { 
   -webkit-animation: none !important;
   -moz-animation: none !important;
}

background-clip

* {
   -webkit-background-clip: border-box   !important; 
   -moz-background-clip:    border-box   !important; 
   background-clip:         border-box   !important; 
}

background-origin

* {
   -webkit-background-origin: 0 0        !important;
   -moz-background-origin:    0 0        !important;
   background-origin:        0 0        !important;
}

background-size

* {
   -webkit-background-size: auto         !important; 
   -moz-background-size:    auto         !important; 
   background-size:         auto         !important;
}

Lost @media query support

Looks like we lost media query support. I tried to get it back but failed. This may be a unique function since it's not a replace, just a wipeout, it's just unsetting the rule entirely.

toggling issue

when i try this out on a page with css3 by clicking on the bookmark, it does degrade gracefully, but i expected it to get back to css3 when i click it again,

things which happen,

  • icon fonts disappear
  • flex slider(which was disabled using display:none) appears again.
  • it doesn't degrade radial gradients, but i'm sure this is an issue you are working on.

On the whole, a great job. very useful tool and encourages me to use modernizr even more.

Browser: Chrome 16
OS: Windows 7

border-image

Just another thing to remove.

-webkit-border-image: none            !important;
-moz-border-image:    none            !important;
border-image:         none            !important;

Stretching of multiple gradients

After hearing about deCSS3 on ShopTalk I decided to take a look.
It's working great, however I have run into a little but which I figured I'd report (sorry if this sounds a little bit ramble-y for a GitHub issue, but I don't submit many of these things).

Basically when using the bookmarklet on pages of my site, the background (which consists of multiple gradients) screws up and stretches. This is illustrated perfectly when going to http://www.dev-hq.net/ and activating then de-activating the bookmarklet - the background compresses together (I've tested in Chrome). It's interesting to note that when going on to different pages of my website, for example http://www.dev-hq.net/5, the gradient gets stretched the opposite way.

Sorry I couldn't be more helpful and give some sort of test case in which I've found it screws up or find the root of the issue, but I'm a little pushed for time.

column-count layout shift

Resetting column-count may have to be on a detection basis. Setting * { column-count: 1; } can cause layout shifts when child elements are involved.

In the current version, I have all of the following and neither work so well:

  • column-count: 1!important // causes problems with nested stuff
  • column-count: none!important // doesn't override declared column-count
  • column-span: all!important // doesn't do anything?

Any solutions, let me know.

Toggling

Suggested by Paul Irish, the ability to toggle off/on the bookmarklet would be pimp.

Not sure how feasible this is give the fact we're using deleteRule() in the CSS, but worth thinking about.

Bookmarklet fails to download .js

When executing the bookmarklet it fails to execute the JavaScript, since it's served as MIME text/plain. Please use rawgit URL instead.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.