Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CSS-PSEUDO][CSS-UI] Detection of base HTML attribute implementation support #6195

Open
gregwhitworth opened this issue Apr 9, 2021 · 1 comment
Assignees
Labels

Comments

@gregwhitworth
Copy link
Contributor

In issue #5998 we resolved to make base an attribute rather than a keyword. However, we also resolved that an author will want to be able to determine if base is supported to adjust their styles accordingly. I was actioned to open this issue to determine what that solution will look like.

@frivoal recommended a pseudo-class approach for detection since it will be added by element while an @support would be more generic and thus won't allow the granular detection.

@gregwhitworth gregwhitworth self-assigned this Apr 9, 2021
@gregwhitworth gregwhitworth changed the title CSS detection of base attribute implementation support [CSS-PSEUDO][CSS-UI] Detection of base HTML attribute implementation support Apr 9, 2021
@frivoal
Copy link
Collaborator

frivoal commented Apr 26, 2021

Right. To be able to style things properly, we need to detect the combination of:

  • base styling is supported for this type of element
  • base styling is set on this particular element

@supports might be extended to cover the first one, but it won't do the second one. Attribute selectors can be used to check on the second one, but not on the first one. Using the two in combination is clumsy, and error prone. So I think that a pseudo class is what we want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants