Wrong interpretation of styles in data:text/html with *
Reported by
jm.acun...@gmail.com,
Apr 11 2017
|
||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
Steps to reproduce the problem:
Correct behavior:
data:text/html,<html><head><style>strong{color:red;}</style></head><body><strong>test</strong><span>a</span></html>
data:text/html,<html><head><style>strong{color:red;display:inline;}</style></head><body><strong>test</strong><span>a</span></html>
data:text/html,<html><head><style>strong{color:red;display:block;}</style></head><body><strong>test</strong><span>a</span></html>
data:text/html,<html><head><style>*{color:red;}</style></head><body><strong>test</strong><span>a</span></html>
Wrong behavior:
data:text/html,<html><head><style>*{color:red;display:inline;}</style></head><body><strong>test</strong><span>a</span></html>
data:text/html,<html><head><style>*{color:red;display:block;}</style></head><body><strong>test</strong><span>a</span></html>
What is the expected behavior?
What went wrong?
Displays on-screen text corresponding to styles
Did this work before? N/A
Chrome version: 57.0.2987.133 Channel: stable
OS Version: 6.3
Flash Version: Shockwave Flash 25.0 r0
,
Apr 11 2017
In the last two cases, it correctly interprets the properties (color and display) but literally writes them on the screen
,
Apr 11 2017
That's because <style> matches to *, and the <style> has color:red and display:inline/block.
,
Apr 11 2017
I understand now, I'm sorry |
||
►
Sign in to add a comment |
||
Comment 1 by tkent@chromium.org
, Apr 11 2017Labels: Needs-Feedback
Would you post screenshots, and explain what's expected please? > data:text/html,<html><head><style>*{color:red;display:inline;}</style></head><body><strong>test</strong><span>a</span></html> > data:text/html,<html><head><style>*{color:red;display:block;}</style></head><body><strong>test</strong><span>a</span></html> Their rendering results look correct to me.