Closed
Bug 1128460
Opened 10 years ago
Closed 10 years ago
* { display : block } applies to metadata content like title, style and script elements
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: vuk.kulvar, Unassigned)
References
Details
(Keywords: css2, testcase)
Attachments
(1 file)
265 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
Build ID: 20150122214805
Steps to reproduce:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Test</title>
<style>
* { display : block }
</style>
<script>
//function test() {}
</script>
</head>
<body>
</body>
</html>
Actual results:
The <head>, <title>, <style>, and <script> element were shown on the top of the site
Expected results:
The <head>, <title>, <style>, and <script> element aren't intended to be shown, especially when not in the <body>.
Comment 1•10 years ago
|
||
This is not a bug; the browser is just behaving as instructed. "*" means everything [1]. The "display" property applies to all elements [2], including metadata content like title, style and script.
[1] http://www.w3.org/TR/2011/REC-CSS2-20110607/selector.html#universal-selector
[2] http://www.w3.org/TR/2011/REC-CSS2-20110607/visuren.html#display-prop
Updated•10 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Component: Untriaged → CSS Parsing and Computation
Keywords: testcase
Product: Firefox → Core
Resolution: --- → INVALID
Summary: css selector with display property show head and his content → * { display : block } applies to metadata content like title, style and script elements
You need to log in
before you can comment on or make changes to this bug.
Description
•