HTML inliner
edoardo-goracci opened this issue · 0 comments
edoardo-goracci commented
Create a service that manages to create HTML attributes to specific elements on the page when certain CSS rules are present.
Define a new configuration in OSGi configuration to customize the use of this new service. The new configuration should be a list, and it must contain the following fields:
- HTML element type to be targeted (e.g. "img")
- RegEx to match the related CSS property (e.g. "width")
- RegEx to extract the actual value to be inserted in the newly created HTML attribute from the CSS property (e.g. "[0-9]+(?=px)")
- HTML attribute name to be created
- true/false to override the selected HTML attribute value if it is already existing