Skip to content

Explore use of Symfony's CssSelector to do deeper tree shaking #2102

@westonruter

Description

@westonruter

Symfony has a CssSelector component which can be used to convert a CSS selector to an XPath expression. This in theory could be used to do evaluate a given selector against the document to determine whether it applies. This could shake quite a bit of CSS that we currently don't consider, for example selectors with multiple class names. Special care would be needed to account for selectors that interact with elements in an AMP document that are dynamically modified at runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CSSWS:CoreWork stream for Plugin core

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions