Skip to content

CSS: only add [is=..] selector if element is type-extension #320

Closed
@ebidel

Description

Blink has recalc style/paint issues with complex attribute selectors...

In Chrome stable on chromestatus.com, I see large repaints on scrolling. The culprit is from a complex attribute selector that the styling polyfill produces:

chromedash-metadata ul li[selected],
[is=chromedash-metadata] ul li[selected] {
  font-weight: 600;
  color: rgb(54, 101, 151);
}

Note: turning off the font-weight:600; alone speeds up the scrolling.

It would be killer if the polyfill only added ([is=chromedash-metadata]...)-type selectors if the element is actually a type-extension. This will be an easy
perf boost for users.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions