The * selector should be in the defaults.css in Basic (or maybe Core). A * or global selector is how defaults were set up for Flash since Flash did not make it easy to get browser default stylesheets. Like in Flex, the app dev can have an fx:Style block and choose different values in its * selector, but there is no way to remove the defaults. This was fine in Flex because we weren't computing inherited values and * values correctly, but it is an issue in the browser.
You can't just remove the * selector, because many other things are relying on those values, so either moving them to Application or create more TypeSelectors should work. Of course, I could be wrong... -Alex On 1/3/18, 12:53 AM, "Olaf Krueger" <[email protected]> wrote: > >> It looks like inherited properties have lower >>priority than the * selector and that feels like the * selector is too >>powerful. > >That's the case, I've created a little CodePen demo in order to validate >this [1]. >That said I guess this issue has nothing to do with the ACE editor. >BTW: It seems to me that using the type selector doesn't resolve this >issue: >Style inheritance is also blocked by the 'global' universal selector, see >the button element in [1]. > >Some questions left: >- Why do we need to set those default styles in Royale? >- Can somebody point me to line of code in asjs where those default styles >are set ( * {font-familiy:Arial...} )? >- Is an application developer able to overwrite or disable those default >styles? > >Thanks, >Olaf > > >[1] >https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcodepen.i >o%2Fanon%2Fpen%2FBJdNZY&data=02%7C01%7Caharui%40adobe.com%7Cdce88e7f3bd04d >0b478908d5528779e4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365056641 >79703956&sdata=TjELCJYkLFNIKhnSyWAzkjylgRoeIsmDDTueK0f8tRQ%3D&reserved=0 > > > > >-- >Sent from: >https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-roy >ale-development.20373.n8.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7 >Cdce88e7f3bd04d0b478908d5528779e4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7 >C0%7C636505664179703956&sdata=x2Ga4evE4x%2BB8CayUCkRs9CQwR3bbkdNNddf6ZiHLR >g%3D&reserved=0
