Closed
Bug 1367282
Opened 7 years ago
Closed 4 years ago
Style attribute vs style element specificity distinction
Categories
(Developer Documentation Graveyard :: CSS, enhancement, P5)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: lakshmisharma92, Unassigned)
References
()
Details
:: Developer Documentation Request Request Type: Correction Gecko Version: unspecified Technical Contact: :: Details In relation to specificity, the page says: "Thousands: Score one in this column if the matching selector is inside a <style> element or the declaration is inside a style attribute (such declarations don't have selectors, so their specificity is always simply 1000.) Otherwise 0." From what I have seen the style attribute takes this preference, but the style element is controlled by ordering. If a style tag appears before link to a css file it will be overridden by the specification of the css file. Hence, only style attribute is given thousands level specificity. Style element content is treated like any other css file content. Do correct me if my understanding wrong.
Comment 1•4 years ago
|
||
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•