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

A warning when a css resource could not be downloaded & apply styles only to elements within (and itself) the body #395

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

horch004
Copy link

@horch004 horch004 commented Feb 2, 2024

  • Let GetCssBlocks add a warning to the list instead of throwing an exception when a resource could not be downloaded.

  • With an All (*) selector in the stylesheet, the css rule is also applied to the html element, head element and elements in the head like script, link etc. To avoid this behaviour only the elements from the body (and itself) are selected to be matched.

Maybe there is another way not to match the all selector to the elements above the body, but this was a quick fix for us.

W Hörchner added 2 commits February 2, 2024 15:15
…ied to the html element, head element and elements in the head like script, link etc.

To avoid this behaviour only the elements from the body (and itself) are selected to be matched.
…eption when a resource could not be downloaded.
@horch004 horch004 changed the title A waring when a css resource could not be downloaded & apply styles only to elements within (and itself) the body A warning when a css resource could not be downloaded & apply styles only to elements within (and itself) the body Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant