W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2020

Re: [csswg-drafts] [css-ui-3] Can |CSS resize| change the value of the width/height properties which has been set with !Important? (#5184)

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Sat, 25 Jul 2020 10:10:50 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-663837600-1595671849-sysbot+gh@w3.org>
Yeah, the phrasing isn't great. what this means is that the style is injected in to a style attribute, and does not include `!important`. So:
* If there was an existing style attribute with `!important`, it gets replaced by the new one
* if there was a `!important` in the stylesheet (not in a style attribute), it wins over whatever resize would like to do.

This has been a while, so I don't fully remember, but I believe this design was much more driven by existing implementations and compat than by a belief this was a smart approach. If this is causing issues *and* there's evidence than a better behavior would be web compatible, we could definitely consider it.

Otherwise, maybe just an editorial clarification is in order.

GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5184#issuecomment-663837600 using your GitHub account
Received on Saturday, 25 July 2020 10:10:52 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:11 UTC