New issue
Advanced search Search tips

Issue 710367 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

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
 

Comment 1 by tkent@chromium.org, Apr 11 2017

Cc: tkent@chromium.org
Labels: 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.

In the last two cases, it correctly interprets the properties (color and display) but literally writes them on the screen
ice_video_20170411-105515.webm
9.7 MB View Download

Comment 3 by tkent@chromium.org, Apr 11 2017

Components: Blink>CSS
Status: WontFix (was: Unconfirmed)
That's because <style> matches to *, and the <style> has color:red and display:inline/block.

I understand now, I'm sorry

Sign in to add a comment