Closed yhatt closed 10 months ago
Replaced to use all: revert instead of all: initial to reset injected styles into the slide preview by other extensions.
all: revert
all: initial
On inherited properties, the initial value may be unexpected. You should consider using the inherit, unset, revert, or revert-layer keywords instead. — https://developer.mozilla.org/en-US/docs/Web/CSS/initial
On inherited properties, the initial value may be unexpected. You should consider using the inherit, unset, revert, or revert-layer keywords instead.
— https://developer.mozilla.org/en-US/docs/Web/CSS/initial
all: initial has been tainted many children CSS properties that allowed an inherited value. In fact, using some styles displays the unexpected result.
--- marp: true --- # Hello, <span style="position: relative;">world</span>! — https://github.com/marp-team/marp-vscode/issues/442#issuecomment-1783744775
--- marp: true --- # Hello, <span style="position: relative;">world</span>!
— https://github.com/marp-team/marp-vscode/issues/442#issuecomment-1783744775
CSS Cascading and Inheritance Level 4 allows revert keyword, to reset them into UA default correctly.
revert
Fix #442.
Replaced to use
all: revert
instead ofall: initial
to reset injected styles into the slide preview by other extensions.all: initial
has been tainted many children CSS properties that allowed an inherited value. In fact, using some styles displays the unexpected result.CSS Cascading and Inheritance Level 4 allows
revert
keyword, to reset them into UA default correctly.Fix #442.