Known issue with CSSOM library where duplicate rules are ignored. This makes using the particularly library for output unreliable and unable to guarantee parity with the original stylesheet's intentions.
Simply put, we use Regex for parsing instead of a CSS parser. The Regex will not be as accurate, but I believe when weighed out against the CSSOM library output, the benefit outweighs the risk until another library is found and implemented which doesn't focus on standards based parsing.
Known issue with CSSOM library where duplicate rules are ignored. This makes using the particularly library for output unreliable and unable to guarantee parity with the original stylesheet's intentions.
Simply put, we use Regex for parsing instead of a CSS parser. The Regex will not be as accurate, but I believe when weighed out against the CSSOM library output, the benefit outweighs the risk until another library is found and implemented which doesn't focus on standards based parsing.