DescriptionUsing the Visitor paradigm, implements a rewriter that pulls all <style>, <link rel="stylesheet"..>, and <link type="*css*"...> nodes into <head> in document-relative order, adjacent to one another.
As noted in the comments, this maintains CSS semantics in all but the most pathological cases while assisting in reducing browser repaints and making concatenation operations more likely.
This CL also includes a StyleConcatContentRewriter impl using the ConcatVisitor's CSS class.
Patch Set 1 #MessagesTotal messages: 2
|