https://drafts.csswg.org/css-conditional/#the-cssmediarule-interface https://drafts.csswg.org/css-conditional/#the-csssupportsrule-interface Edge and Firefox have the CSSConditionRule interface, Safari does not. Implementing this would bring us closer to interop.
Thanks Philip. Do you mind whipping up a quick test for this?
Hi, I am interested with this issue and will trying to upload a CL for this.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae commit 4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae Author: xing.xu <xing.xu@intel.com> Date: Tue Oct 18 14:14:19 2016 CSSMediaRule and CSSSupportsRule inherit from CSSConditionRule From the spec, the conditionText attribute of CSSMediaRule (inherited from CSSConditionRule parent rule), on getting, must return the value of media.mediaText on the rule. Setting the conditionText attribute must set the media.mediaText attribute on the rule. So conditionText of CSSConditionRule should be mutable instead of readonly, this is a TODO. Spec: https://drafts.csswg.org/css-conditional/#the-cssmediarule-interface https://drafts.csswg.org/css-conditional/#the-csssupportsrule-interface https://drafts.csswg.org/css-conditional/#the-cssconditionrule-interface BUG= 651792 Review-Url: https://codereview.chromium.org/2416893002 Cr-Commit-Position: refs/heads/master@{#425950} [add] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/LayoutTests/css3/condition-cssom.html [modify] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/LayoutTests/css3/supports-cssom-expected.txt [modify] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/LayoutTests/css3/supports-cssom.html [modify] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt [modify] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt [modify] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/Source/core/core_idl_files.gni [modify] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/Source/core/css/BUILD.gn [add] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/Source/core/css/CSSConditionRule.cpp [add] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/Source/core/css/CSSConditionRule.h [add] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/Source/core/css/CSSConditionRule.idl [modify] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/Source/core/css/CSSMediaRule.cpp [modify] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/Source/core/css/CSSMediaRule.h [modify] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/Source/core/css/CSSMediaRule.idl [modify] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/Source/core/css/CSSSupportsRule.cpp [modify] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/Source/core/css/CSSSupportsRule.h [modify] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/Source/core/css/CSSSupportsRule.idl [modify] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/Source/core/css/StyleRule.cpp [modify] https://crrev.com/4aaf16a74e94cae754d8e65ddcf0bd1dafefc0ae/third_party/WebKit/Source/core/css/StyleRule.h
Comment 1 by mikelawther@chromium.org
, Oct 5 2016Status: Available (was: Untriaged)