Issue metadata
Sign in to add a comment
|
Removing media attribute doesn't trigger style recalculation |
||||||||||||||||||||||||
Issue descriptionChrome Version: 60.0.3112.101 (Official Build) (64-bit) OS: Linux JS Code: http://jsbin.com/zerazujeto/1/edit?html,output Expected Result: The media attribute is removed from the style rule, so this rule must be applied to all kinds of media. The text "Should be Green" should be colored green. Actual Result: The text "Should be Green" is colored red. The media attribute is not removed successfully.
,
Aug 28 2017
Looks like this doesn't require Shadow DOM at all. http://jsbin.com/sebokuwodu/edit?html,output I also checked a case that adds media attribute, which seems working fine.
,
Aug 28 2017
,
Aug 28 2017
shanmuga.m@: could you check if your change for 756804 also fixes this issue?
,
Aug 28 2017
,
Aug 28 2017
rune@ : Yes. The changes for 756804 also fixes this issue as well.
,
Aug 28 2017
,
Aug 29 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/cbe78d23e79476b05503d6fe028b83addfc45d6e commit cbe78d23e79476b05503d6fe028b83addfc45d6e Author: Shanmuga Pandi M <shanmuga.m@samsung.com> Date: Tue Aug 29 12:48:36 2017 Changing <style> element's media attribute should reflect is CSS. CSSStyleSheet is not created for style elements when the media type is not matching screen or print earlier. With this change, it will create style sheet for all media types. Bug: 756804 , 759420 , 757450 Change-Id: I8c38f2daf6d70b749a0f8de394d646f755695d02 Reviewed-on: https://chromium-review.googlesource.com/631859 Reviewed-by: Rune Lillesveen <rune@opera.com> Commit-Queue: Shanmuga Pandi <shanmuga.m@samsung.com> Cr-Commit-Position: refs/heads/master@{#498083} [add] https://crrev.com/cbe78d23e79476b05503d6fe028b83addfc45d6e/third_party/WebKit/LayoutTests/external/wpt/html/semantics/document-metadata/the-style-element/style_media_change.html [add] https://crrev.com/cbe78d23e79476b05503d6fe028b83addfc45d6e/third_party/WebKit/LayoutTests/external/wpt/html/semantics/document-metadata/the-style-element/style_non_matching_media.html [modify] https://crrev.com/cbe78d23e79476b05503d6fe028b83addfc45d6e/third_party/WebKit/Source/core/dom/StyleElement.cpp |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by elkurin@google.com
, Aug 28 2017