Skip to content

Some css styles cannot be isolated from Quarto's default settings #1120

@AlbertRapp

Description

@AlbertRapp

Description

As discussed in #1113 some css styles are not isolated from Quarto's defaults even when using as_raw_html(). I think this mainly relates to styles that are inherited from body. Some styles can be isolated from Quarto's defaults by wrapping the code chunk in a div with style="all:initial;".

Reproducible example

Multiple examples documented at https://guileless-mousse-1c0b8b.netlify.app/ (in a Quarto book to see effects).

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions