Here is how CSS is merged:
All css is extracted from teh input document. Extra css is added to the extracted css. Various manipulation is done on the css for font size rescaling, justification, margins etc.
The modified css is written back out into the output file in the form of class based selectors. What CSS overrides other css depends on the priority of the selectors used. CSS has complex rules governing this, which I dont have the time to go into here.
|