News for hackers. Stuff that matters.
Re:Fix CSS by writing it in JavaScript by Sakes on Tuesday November 25, 2014 @12:20PM (#8658586)
The example I provided above aggressively overwrites any inherited CSS properties for some component B.

Example 1:

<div class="component-a"><button></button><div class="component-b"><button></button></div></div>

Example 2:

<div class="component-b"><button></button></div>

Result:

The <button> wrapped in div.component-b for both above examples will render exactly the same, ignoring html structure.

There are no comments on this comment yet.