You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per #4679 (changes landed in #4849 and #4850), we updated <custom-style> to automatically move itself to the main document to avoid breakage due to the planned deprecation in Chrome of <styles> in HTML Imports applying to the main document.
However, since the Chrome deprecation warning is logged as soon as the HTML parser sees the style in the import, the deprecation warning is misleading since the style will immediately be moved to the main document when the custom-style upgrades, avoiding any actual problems. This has confused users and also leads to muddied statistics about the actual impact of the deprecation.
This issue proposes to allow users to add a type="custom" attribute to <style> tags to prevent them from being parsed as text/css, which avoids the deprecation warning. When custom-style then moves the style to the main document, it can remove the type attribute, allowing the style to be parsed and apply as normal.
The text was updated successfully, but these errors were encountered:
Per #4679 (changes landed in #4849 and #4850), we updated
<custom-style>
to automatically move itself to the main document to avoid breakage due to the planned deprecation in Chrome of<styles>
in HTML Imports applying to the main document.However, since the Chrome deprecation warning is logged as soon as the HTML parser sees the style in the import, the deprecation warning is misleading since the style will immediately be moved to the main document when the
custom-style
upgrades, avoiding any actual problems. This has confused users and also leads to muddied statistics about the actual impact of the deprecation.This issue proposes to allow users to add a
type="custom"
attribute to<style>
tags to prevent them from being parsed astext/css
, which avoids the deprecation warning. Whencustom-style
then moves the style to the main document, it can remove thetype
attribute, allowing the style to be parsed and apply as normal.The text was updated successfully, but these errors were encountered: