When style.backgroundColor is applied, all background related rules are written inline #48

Open
opened 2021-11-16 17:09:39 +00:00 by raphaelbastide · 2 comments
raphaelbastide commented 2021-11-16 17:09:39 +00:00 (Migrated from gitlab.com)

On any demo with shift-click = change background color or when something like d.querySelector('#c-0').style.backgroundColor = 'black' is executed, all the background related CSS rules are written in the tag. background-image: ; background-position-x: ; background-position-y: ; background-size: ; background-repeat-x: ; background-repeat-y: ; background-attachment: ; background-origin: ; background-clip: ; background-color: black;

On any demo with shift-click = change background color or when something like `d.querySelector('#c-0').style.backgroundColor = 'black'` is executed, all the background related CSS rules are written in the tag. ` background-image: ; background-position-x: ; background-position-y: ; background-size: ; background-repeat-x: ; background-repeat-y: ; background-attachment: ; background-origin: ; background-clip: ; background-color: black;`
alicericci commented 2021-12-13 14:56:22 +00:00 (Migrated from gitlab.com)

mentioned in commit 732d2c68bc

mentioned in commit 732d2c68bc7f4654520aeb5d50d1f134ec657ffc
alicericci commented 2021-12-13 14:56:30 +00:00 (Migrated from gitlab.com)

This is due to the background properties being set up with background: red, instead of background-color: red. I have updated the demos to take this into account, but each individual html file should be update in order to completely remove the bug
/732d2c6

This is due to the background properties being set up with background: red, instead of background-color: red. I have updated the demos to take this into account, but each individual html file should be update in order to completely remove the bug /732d2c6
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tarball/cascade#48
No description provided.