-
Notifications
You must be signed in to change notification settings - Fork 549
<style> entry in index of elements has not been updated to reflect removal of scoped
attribute
#516
Comments
These were true when the index of elements was introduced, but obsoleted when w3c#318 removed the scoped attribute. Resolves w3c#516 (This commit is an exact duplicate of whatwg/html@2acc100)
Since ancient times (before your sun burned hot and your race was born…) a feature of CSS was that it could be included as flow content in an HTML document, but parsed and rendered as a stylesheet. In modern times that is known as DRY, often presented as a better idea than "hidden metadata". The current rendering chapter includes a rule PR #517 suggested disallowing It makes more sense to me that we continue to allow this, make So, what to do? |
This seems silly. Firstly, even if your proposed change to the normative spec were a good idea and likely to happen, that doesn't seem like a reason to reject the change to the non-normative element index that I proposed in #517. The index is there to provide a quick summary of information from the normative part of the spec. Deliberately choosing to have its content remain incorrect in the hope that in future the normative parts of the spec will be changed to match the erroneous element index is unhelpful to anybody seeking to use the element index to understand the current spec. Secondly, your proposed change to the normative parts of the spec is a patently bad idea. Per your own investigation, the current behaviour of most browsers when encountering a If |
@ExplodingCabbage makes a good point, style in body should definitely not become display : block. This is related to #544 so a PR or suggested text would be welcome. |
Agreed that we shouldn't make style be Browsers seem to handle |
👍
The spec has never supported this. Once again I'll point out that the only suggestion that this is allowed was in the index that I proposed changing in #517, which is non-normative. It seems like a good idea to me (for the reasons you've given) to change the spec to support |
I think the spec is ambiguous, which probably explains why we differ on whether it is supported. The alternative, and equally plausible explanation, is that I just didn't read something carefully enough. HTML 5.x says, apparently normatively, that
But style in body doesn't pass the validator. Anyway, I guess the sensible thing is to find all the places where this is discussed and make them all clarify that |
I'm just afraid how authors will perceive the difference between this, and the
|
Except that this has worked in browsers "forever". And seems not to have broken the web. So authors seem either used to the idea, or to learn it quickly. After all,
I'd rather not go there, unless there is some pressing reason. |
Also note that if |
Closing this in favour of #544 which seems to correctly summarise what we need to do: make |
This is an exact duplicate of an bug I just reported over on WhatWG's spec; details at whatwg/html#1521.
Will push a PR to fix it as soon as I've read the contributing guidelines.
The text was updated successfully, but these errors were encountered: