New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 632992 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Compat



Sign in to add a comment

Problem with style display:none;

Reported by surru...@googlemail.com, Jul 31 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/51.0.2704.79 Chrome/51.0.2704.79 Safari/537.36

Example URL:

Steps to reproduce the problem:
1. Include in stylesheet called print.css:
                 *.noprint{ display:none;}
2> Include in an HTML page
   <head>
        <link rel=stylesheet href=print.css media=print>
   </head>
   <body>
     <p class=noprint>
       <form>......</form>
     </p>
   </body>
<p class=noprint>
    <form...../form>
</p>"
3. Run the page 

What is the expected behavior?
The form should not display

What went wrong?
The form continues to display. However if you move the noprint class to the form tag, the form correctly does not display.

Does it occur on multiple sites: N/A

Is it a problem with a plugin? N/A 

Did this work before? N/A 

Does this work in other browsers? N/A 

Chrome version: 51.0.2704.79  Channel: stable
OS Version: 
Flash Version: Shockwave Flash 11.2 r999
 
problem.zip
434 bytes Download
Cc: tkonch...@chromium.org
Labels: Needs-Feedback
Tested the same on Linux 14.04 chrome version 52.0.2743.82 and dev 54.0.2810.2 - Observed that the page displayed as shown in the attachment with no error in the console

The same is observed in Firefox browser as well

Could you please recheck the same in other browser and update the threda with your observations.
Screenshot from 2016-08-01 14:58:28.png
53.3 KB View Download
Components: Blink>Forms

Comment 3 by tkent@chromium.org, Aug 5 2016

Components: -Blink>Forms Blink>HTML>Parser
Labels: -Needs-Feedback
Owner: tkent@chromium.org
Status: WontFix (was: Unconfirmed)
<p> element can't have <form> as a child.  problem.html is parsed like:

<p class=noprint></p>
<form>...</form>
<p></p>

Sign in to add a comment