E
elephant
I'm not sure if I'm getting a bug, or if this is the intended way for
getComputedStyles to work, but if anyone can spot something I'm doing
wrong, or a work around, I'd appreciate it.
As an example, say I have this ->
<span style='text-decoration: underline'>
<span style='text-decoration: bold' id='thisId'>
<span style='text-decoration: underline;'>
test
</span>
</span>
</span>
When getComputedStyles is run on thisId, it returns textDecoration =
'none' even though it is encompassed by it's parent which has it.
When other things are used in the top span, it works as expected.
I've tried this with font-weight: bold, font-style: italic, and font-
variant: small-caps, but for some reason it's not picking up
underline.
I've seen a few things were getComputedStyles isn't supposed to pull
the value, but wouldn't have thought text-decoration would have been
one of them. Does anyone know whether this is an incorrect behavior?
getComputedStyles to work, but if anyone can spot something I'm doing
wrong, or a work around, I'd appreciate it.
As an example, say I have this ->
<span style='text-decoration: underline'>
<span style='text-decoration: bold' id='thisId'>
<span style='text-decoration: underline;'>
test
</span>
</span>
</span>
When getComputedStyles is run on thisId, it returns textDecoration =
'none' even though it is encompassed by it's parent which has it.
When other things are used in the top span, it works as expected.
I've tried this with font-weight: bold, font-style: italic, and font-
variant: small-caps, but for some reason it's not picking up
underline.
I've seen a few things were getComputedStyles isn't supposed to pull
the value, but wouldn't have thought text-decoration would have been
one of them. Does anyone know whether this is an incorrect behavior?