01438: interlaced styles (bigger text, color) get confused regarding the span of each

Summary: interlaced styles (bigger text, color) get confused regarding the span of each
Created: 2019-03-10 22:19
Status: Discussion
Category: Bug
Assigned:
Priority: 3
Version: 2.2.113
OS: whatever pmwiki.org is running

Description: Tested this at the pmwiki.org sandbox

This is some %red% normally sized text that likes to be red.

[+++This is some very big text+++] as you can see.

[+++This is %red% some very big text+++] that likes to be red.

This is some normally sized text that likes to be red.

This is some very big text as you can see.

This is some very big text that likes to be red.

On the last line, the +++] style change terminates the color but not the size. Art Cabral? March 10, 2019, at 10:20 PM

This is what I see for the HTML source for the relevant output

</p>
<p class='vspace'>This is some <span style='color: red;'> normally sized text that likes to be red.</span>
</p>
<p class='vspace'><span style='font-size:173%'>This is some very big text</span> as you can see.
</p>
<p class='vspace'><span style='font-size:173%'>This is <span style='color: red;'> some very big text</span> that likes to be red.</span>
</p>

PmWiki is producing what you request, but the browsers cannot interpret correctly unbalanced closing tags <big>...<red>...</big>...</red> and show what they assume you meant. You need to have <big>...<red>...</red></big><red>...</red> for the browser to parse it correctly, in that case use closing %% wikistyle like this:

[+++This is %red% some very big text%%+++] %red%that likes to be red.%%\\
or\\
[+++This is +++]%red% [+++some very big text+++] that likes to be red.%%

This is some very big text that likes to be red.
or
This is some very big text that likes to be red.

This way the browser will know which part you meant to be big and which red. --Petko March 11, 2019, at 09:06 AM