Output a <link> element. Use the result from calling resource.getRequestPath() as the value of the "href" attribute, the result from calling resource.getContentType() as the value of the "type" attribute, the literal string "stylesheet" as the value of the "rel" attribute, and the literal string "screen" as the value of the "media" attribute, and the value of the "media" attribute set to the value of the "media" attribute of this tag.

The implementation of this renderer must have a @ListenerFor annotation attached to it, at the class level, declaring PostAddToViewEvent.class as the value of the systemEventClass attribute. The presence of this annotation on a renderer implies the renderer implements ComponentSystemEventListener, which this renderer must do. The implementation of processEvent() must extract the UIComponent from the argument event pass it to UIViewRoot.addComponentResource(), specifying the literal string "head" as the last argument.

The stylsheet renderer must ensure that any stylesheets are included in the <head> of the document.