ust Best Online Casino in Australia – Joo Casino Aussie By catswhocode.com Published On :: Fri, 19 Mar 2021 01:34:00 +0000 Table of Contents Why Joo Casino Aussie is the Top Choice for Australian Gamblers? Most popular online casino games at Joo Casino How to Make a Deposit or Withdrawal at Joo Casino Joo Casino Games in Australia Promotions that Never End at Joo Casino Big Progressive Jackpots of Joo Casino Customer service Joo Casino is […] Full Article Blog
ust Does Tropica Casino pay out the most in Australia? By catswhocode.com Published On :: Thu, 06 Jan 2022 19:17:00 +0000 Table of Contents How to increase winnings utilizing Tropica Casino bonuses? Play games thay propose bonus rounds AUD Deposit and Withdrawal Methods Play where you want with mobile version Tropica Casino, fueled by the exclusive Rival software, brings a refreshing wave of novelty for Australian players. With a catalogue surpassing 100 games, Tropica offers an […] Full Article Blog
ust New Online Tangiers Casino in Australia 2023 By catswhocode.com Published On :: Thu, 17 Feb 2022 13:44:00 +0000 Contents The benefits of becoming a VIP as well as the awards Tangiers Casino Protection and governing norms Gambling in a responsible manner The Best Bonus for New Players Are you interested in playing casino games online but want to find a reputable and fun venue in which to do it in Australia? Tangiers Casino, […] Full Article Blog
ust Trust Analysis Azure Hand Casino Is the Best One to Play At? By catswhocode.com Published On :: Tue, 10 Jan 2023 11:11:00 +0000 Table of Contents Trust Analysis Azure Hand Casino Totally reliable and honest gaming Where can I sign up for the live dealer games? Australians looking for online casinos with a $5 minimum deposit Mobile gambling establishments Assurances of complete security, justice, and harmony in all respects Online Gambling and Tablets Bonuses for casinos with […] Full Article Blog
ust Innovations in the Technology Industry By catswhocode.com Published On :: Tue, 02 May 2023 21:00:00 +0000 Innovation in the technology industry is a key driver of business success. Technological innovations can help companies solve problems, develop new products and services, improve productivity, and increase profitability. Technology has revolutionized how people live and work. Technology is constantly changing the world, whether it’s the development and use of smart phones, computers, or software […] Full Article Blog
ust L’Industrie DesAssurances Multiirisques By catswhocode.com Published On :: Wed, 31 May 2023 00:00:00 +0000 L’industrie dieses assurances multirisques est algun secteur significant de la société canadienne. Elle offre votre protection adéquate aux professionnels qui s’exposent au risque de perdre leurs biens professionnels ou y compris leur plan. Toute ouvrage ecological research problem solving methodology industrielle est promote à différents risques et à la majorité des formes d’accidents pouvant entraver […] Full Article Blog
ust The most beneficial Worldwide Romantic relationship Apps Just for Ios And Android By catswhocode.com Published On :: Fri, 09 Jun 2023 00:00:00 +0000 Content Buy A Mexican Spouse What’s The Worldwide Trafficking Of Girls Here the registration is certainly free, you can even produce a profile, put your picture and consider profiles of Asian ladies with out being charged. To get access to excellent tools, individuals have to acquire credits. This sort of tools while contact demands, flower […] Full Article Blog
ust Legit Customer Reviews of Talkliv By catswhocode.com Published On :: Thu, 22 Jun 2023 00:00:00 +0000 Articles What it could be like as being a foreign female in China and tiawan Humorous approaches to express like The profiles are all genuine with real Chinese photos and never any of those retouched https://top10chinesedatingsites.net/jiayuan-review/ photos. Many Chinese singles here are also fluent in their English speaking and writing abilities which makes it convenient […] Full Article Blog
ust Info Room Solutions and Their Uses in the Property, Manufacturing, and Fundraising Industries By catswhocode.com Published On :: Mon, 17 Jul 2023 00:00:00 +0000 Data space technologies enable companies to exchange documents safely, whether it is intended for collaboration over a project or perhaps due diligence. They are really a digital variety of the physical rooms exactly where sensitive paperwork used to be stored. Nevertheless , these on line spots offer a much more features to facilitate cooperation and […] Full Article Blog
ust What’s behind the winning streak of the Malayalam film industry? By www.thehindubusinessline.com Published On :: Tue, 14 May 2024 16:25:37 +0530 Manjummel Boys, directed by Chidambaram, has become the first Malayalam film to collect ₹200 crore Full Article Variety
ust Raksha Bandhan goes green: The rise of seed rakhis and sustainable farming By www.thehindubusinessline.com Published On :: Mon, 19 Aug 2024 12:37:56 +0530 These unique rakhis, when planted in soil, grow into plants, symbolising the enduring bond between siblings and the connection with nature Full Article Variety
ust Indian hospital industry: Cost attractiveness and under-penetration By www.thehindubusinessline.com Published On :: Wed, 24 Jan 2024 09:18:10 +0530 Here is a look at the key emerging trends in India’s hospital sector Full Article Statistalk
ust In charts| Indian auto-component industry By www.thehindubusinessline.com Published On :: Wed, 21 Feb 2024 07:23:21 +0530 Indian auto-component industry is dominated by demand from domestic OEMs, says ICRA Full Article Portfolio
ust Teachers must inspire By www.thehindubusinessline.com Published On :: Sun, 24 Mar 2024 21:18:05 +0530 They must be passionate about sharing their knowledge, and motivate young minds to learn and grow Full Article From the Viewsroom
ust EPL’s title race just got hotter By www.thehindubusinessline.com Published On :: Tue, 09 Apr 2024 21:16:41 +0530 This season is likely to go down to the wire Full Article From the Viewsroom
ust Indian telecom industry landscape By www.thehindubusinessline.com Published On :: Tue, 23 Apr 2024 21:26:29 +0530 The industry is poised to benefit from several favourable factors Full Article Statistalk
ust In charts| Indian services industry By www.thehindubusinessline.com Published On :: Tue, 30 Apr 2024 20:10:18 +0530 India’s share in global services increased from 2% in 2005 to 4.6% in 2023 Full Article Portfolio
ust Landscape of gold industry in India By www.thehindubusinessline.com Published On :: Tue, 07 May 2024 19:01:21 +0530 The middle class continues to be the primary consumer of gold in India Full Article Statistalk
ust The ECI must flex its muscle By www.thehindubusinessline.com Published On :: Thu, 09 May 2024 21:05:51 +0530 Some of speeches of politicians during their election campaigns are causing concern Full Article From the Viewsroom
ust Indian football must raise its game By www.thehindubusinessline.com Published On :: Sun, 23 Jun 2024 20:42:48 +0530 To regain fan trust and support, the India team needs to show steady progress in world rankings and consistent victories in championships Full Article From the Viewsroom
ust Is the travel industry ready for take-off? By www.thehindubusinessline.com Published On :: Tue, 03 Sep 2024 21:16:58 +0530 Domestic demand, capacity and utilisation are rebounding for aviation, and this has had a positive impact on the hospitality sector. With the Budget allocation increased from ₹1,692 crore for FY24 to around ₹2,480 crore for FY25, the outlook for the travel and hospitality industry is encouraging. The number of rooms available has also increased along with high average daily rate (ADR), revenue per available room rate (RevPAR) and occupancy. Full Article Statistalk
ust How the logistics industry is positioned in India By www.thehindubusinessline.com Published On :: Tue, 17 Sep 2024 21:19:42 +0530 The market size of logistics grew at a CAGR of 11 per cent from FY19 till FY24 and it is projected to reach a market size of ₹35.3 trillion by FY29. While expenditure on logistics as a % of GDP is at a relatively higher 13 per cent, it is expected to drop to high-single-digits on improving connectivity and efficiencies through formalisation of the economy. The transportation segment contributes to most of the logistics market in India and within that, roadways dominate as of FY21. However, with the improvement in the rail infrastructure, Railways are expected to grow at a faster pace. This has been compiled from the RHP of Wester Carriers (India) Limited Full Article Statistalk
ust How the Indian retail industry is growing and transforming By www.thehindubusinessline.com Published On :: Tue, 24 Sep 2024 20:38:07 +0530 Retail has stayed firm at around 48 per cent of private consumption expenditure which is on an increasing trend. Apparel and apparel accessories stand to be the fastest growing segment within retail. While the segment is largely unorganised, the penetration of organised players has been on the rise with a significant jump since FY23. Also, the e-retail segment has been growing at a fast pace with >30 per cent y-o-y growth in FY23 and FY24 Full Article Statistalk
ust Bajaj Auto motorcycle sales marginally up in August By www.thehindu.com Published On :: Tue, 02 Sep 2014 11:42:09 +0530 Full Article Industry
ust Businesses with turnover of over 5 crore required to generate e-invoice from August 1 By www.thehindu.com Published On :: Thu, 11 May 2023 13:50:23 +0530 Finance ministry will reduce threshold for generating e-invoice for B2B transactions from ₹10 crore to ₹5 crore, starting August 1. Full Article Business
ust United States’ Ambassador to India Kenneth Juster met the Dalai Lama By www.himvani.com Published On :: Fri, 04 May 2018 14:38:51 +0000 Visiting the Tibetan headquarters in Exile for the first time, the United States’ Ambassador to India Kenneth Juster today called on the Tibetan leader the Dalai Lama at the latter’s residence in Dharamshala North India on Friday. “I was very inspired by his presence. We had a discussion on a broad range of subjects. It […] Full Article Events Dalai Lama Dharamshala Kenneth Juster Ngodup Dongchung US Ambassador to India
ust Just voters, not leaders By www.thehindubusinessline.com Published On :: Mon, 20 May 2019 22:00:43 +0530 Many prove their leadership mettle but find their way barred by male domination Full Article India File
ust Haryana elections: Not just Pakistan; rural distress too a factor By www.thehindubusinessline.com Published On :: Mon, 21 Oct 2019 14:26:08 +0530 Farmers’ groups raise concerns over cotton crop, rural incomes and cost of clearing stubble Full Article National
ust Cramped for justice By www.thehindubusinessline.com Published On :: Tue, 05 Nov 2019 10:06:40 +0530 Full Article India File
ust Reinsurance terms, a challenge for the industry By www.thehindubusinessline.com Published On :: Tue, 19 Nov 2019 08:39:16 +0530 Full Article India File
ust Not just a random digging programme By www.thehindubusinessline.com Published On :: Tue, 25 Feb 2020 08:52:09 +0530 MGNREGS has created assets that have made farming viable. But funds cutback and rural vested interests can erode its impact. A BusinessLine analysis Full Article India File
ust BS-VI-ready auto industry gets corona fever By www.thehindubusinessline.com Published On :: Tue, 24 Mar 2020 08:22:31 +0530 Full Article India File
ust Clustering around Koppal By www.thehindubusinessline.com Published On :: Mon, 05 Oct 2020 20:03:38 +0530 Aequs Aerospace to create space for large-scale manufacture of toys at Koppal Full Article India File
ust Company uses mining dust to enhance carbon capture By www.thehindu.com Published On :: Sun, 20 Oct 2024 04:30:00 +0530 A Darjeeling-based company is transporting basalt dust from Jharkhand and using it as an organic fertiliser to enrich soil and accelerate carbon sequestration. It has used about 500 tonnes of dust. Full Article Environment
ust India close to finalising industry carbon targets ahead of Baku climate meet By www.thehindu.com Published On :: Thu, 24 Oct 2024 04:30:00 +0530 Numerically specifying the targets is a precursor to the setting up of a ‘compliance’ carbon market. This means that companies have to ensure that their carbon emissions intensity is within the specified limit or they must ‘buy’ credits from organisations that have surplus credits. Full Article Environment
ust Green Humour by Rohan Chakravarty on the first great Indian bustard born through IVF By www.thehindu.com Published On :: Thu, 31 Oct 2024 10:00:00 +0530 Full Article Environment
ust Advancements in sustainable energy: IISER Tirupati’s breakthrough in hydrogen generation By www.thehindubusinessline.com Published On :: Sat, 29 Jun 2024 06:35:27 +0530 Researchers at IISER Tirupati developed an innovative method using nickel catalysts to advance the ‘Hydrogen economy’ by enabling COx-free hydrogen generation, contributing to sustainable energy solutions Full Article Science
ust Bengaluru to host 13th edition of nanotech event in August By www.thehindubusinessline.com Published On :: Wed, 03 Jul 2024 15:58:54 +0530 Nanotech event to focus on sustainability, climate change, healthcare applications Full Article News
ust Stuck-in-space astronauts reflect on being left behind and adjusting to life in orbit By www.thehindubusinessline.com Published On :: Sat, 14 Sep 2024 08:53:04 +0530 The astronauts stuck in space say it was hard to see their Boeing capsule leave without them Full Article Science
ust ICMR inks industry collaborations for first in-human trials By www.thehindubusinessline.com Published On :: Sat, 14 Sep 2024 13:33:15 +0530 Collaborations on four molecules, a fillip for research in the country Full Article Science
ust Short Take: Coal India F&O contract adjustments By www.thehindubusinessline.com Published On :: Sat, 02 Nov 2024 17:33:58 +0530 On November 5, the stock price and all derivatives contracts on Coal India will be adjusted for dividend appropriately Full Article Derivatives
ust Bandu’s Blockbusters for Nov 3, 2024 By www.thehindubusinessline.com Published On :: Sat, 02 Nov 2024 18:02:35 +0530 Guess the stock that will give the best return by next Friday Full Article Technical Analysis
ust F&O Query: Should you hold call options on Reliance Industries and ICICI Bank? By www.thehindubusinessline.com Published On :: Mon, 04 Nov 2024 13:30:44 +0530 Full Article Derivatives
ust Bandu’s Blockbusters for Nov 10, 2024 By www.thehindubusinessline.com Published On :: Sat, 09 Nov 2024 18:41:19 +0530 Guess the stock that will give the best return by next Friday Full Article Technical Analysis
ust Two options for using custom properties By www.quirksmode.org Published On :: Tue, 04 May 2021 15:16:56 +0100 Recently I interviewed Stefan Judis for my upcoming book. We discussed CSS custom properties, and something interesting happened. We had a period of a few minutes where we were talking past one another, because, as it turns out, we have completely opposite ideas about the use of CSS custom properties. I had never considered his approach, and I found it interesting enough to write this quick post. Option 1 Take several site components, each with their own link and hover/focus colours. We want to use custom properties for those colours. Exactly how do we do that? Before my discussion with Stefan that wasn’t even a question for me. I would do this: .component1 { --linkcolor: red; --hovercolor: blue; } .component2 { --linkcolor: purple; --hovercolor: cyan; } a { color: var(--linkcolor); } a:hover,a:focus { color: var(--hovercolor) } I set the normal and hover/focus colour as a custom property, and leave the definition of those properties to the component the link appears in. The first and second component each define different colours, which are deployed in the correct syntax. Everything works and all’s well with the world. As far as I can see now this is the default way of using CSS custom properties. I wasn’t even aware that another possibility existed. Option 2 Stefan surprised me by doing almost the complete opposite. He uses only a single variable and changes its value where necessary: .component1 { --componentcolor: red; } .component1 :is(a:hover,a:focus) { --componentcolor: blue; } .component2 { --componentcolor: purple; } .component2 :is(a:hover,a:focus) { --componentcolor: cyan; } a { color: var(--componentcolor) } At first I was confused. Why would you do this? What’s the added value of the custom property? Couldn’t you just have entered the colour values in the component styles without using custom properties at all? Well, yes, you could. But that’s not Stefan’s point. The point In practice, component definitions have way more styles than just colours. There’s a bunch of box-model properties, maybe a display, and possibly text styling instructions. In any case, a lot of lines of CSS. If you use custom properties only for those CSS properties that will change you give future CSS developers a much better and quicker insight in how your component works. If the definition uses a custom property that means the property may change in some circumstances. If it uses a fixed definition you know it’s a constant. Suppose you encounter this component definition in a codebase you just inherited: .component { --color: red; --background: blue --layout: flex; --padding: 1em; --borderWidth: 0.3em; display: var(--layout); color: var(--color); background: var(--background); padding: var(--padding); border: var(--borderWidth) solid black; margin: 10px; border-radius: 2em; grid-template-columns: repeat(3,1fr); flex-wrap: wrap; } Now you essentially found a definition file. Not only do you see the component’s default styles, you also see what might change and what will not. For instance, because the margin and border-radius are hard-coded you know they are never changed. In the case of the border, only the width changes, not the style or the colour. Most other properties can change. The use of display: var(--layout) is particularly revealing. Apparently something somewhere changes the component’s layout from grid to flexbox. Also, if it’s a grid it has three equal columns, while if it’s a flexbox it allows wrapping. This suggests that the flexbox layout is used on narrower screens, switching to a grid layout on wider screens. Where does the flexbox change to a grid? As a newbie to this codebase you don’t know, but you can simply search for --layout: grid and you’ll find it, probably neatly tucked away in a media query somewhere. Maybe there is a basic layout as well, which uses neither flexbox nor grid? Search for --layout: block and you’ll know. Thus, this way of using custom properties is excellently suited for making readable code bases that you can turn over to other CSS developers. They immediately know what changes and what doesn’t. Teaching aid? There’s another potential benefit as well: this way of using custom properties, which are essentially variables, aligns much more with JavaScript’s use of variables. You set an important variable at the start of your code, and change it later on if necessary. This is what you do in JavaScript all the time. Thus this option may be better suited to teaching CSS to JavaScripters, which remains one of my preoccupations due to the upcoming book. Picking an option Which option should you pick? That’s partly a matter of personal preference. Since the second option is still fairly new to me, and I rarely work on large projects, I am still feeling my way around it. Right at this moment I prefer the first way because I’m used to it. But that might change, given some extra time. Still, I think Stefan is on to something. I think that his option is very useful in large codebases that can be inherited by other developers. I think it deserves careful consideration. Full Article CSS for JavaScripters
ust Custom properties and @property By www.quirksmode.org Published On :: Wed, 21 Jul 2021 14:18:40 +0100 You’re reading a failed article. I hoped to write about @property and how it is useful for extending CSS inheritance considerably in many different circumstances. Alas, I failed. @property turns out to be very useful for font sizes, but does not even approach the general applicability I hoped for. Grandparent-inheriting It all started when I commented on what I thought was an interesting but theoretical idea by Lea Verou: what if elements could inherit the font size of not their parent, but their grandparent? Something like this: div.grandparent { /* font-size could be anything */ } div.parent { font-size: 0.4em; } div.child { font-size: [inherit from grandparent in some sort of way]; font-size: [yes, you could do 2.5em to restore the grandparent's font size]; font-size: [but that's not inheriting, it's just reversing a calculation]; font-size: [and it will not work if the parent's font size is also unknown]; } Lea told me this wasn’t a vague idea, but something that can be done right now. I was quite surprised — and I assume many of my readers are as well — and asked for more information. So she wrote Inherit ancestor font-size, for fun and profit, where she explained how the new Houdini @property can be used to do this. This was seriously cool. Also, I picked up a few interesting bits about how CSS custom properties and Houdini @property work. I decided to explain these tricky bits in simple terms — mostly because I know that by writing an explanation I myself will understand them better — and to suggest other possibilities for using Lea’s idea. Alas, that last objective is where I failed. Lea’s idea can only be used for font sizes. That’s an important use case, but I had hoped for more. The reasons why it doesn’t work elsewhere are instructive, though. Tokens and values Let’s consider CSS custom properties. What if we store the grandparent’s font size in a custom property and use that in the child? div.grandparent { /* font-size could be anything */ --myFontSize: 1em; } div.parent { font-size: 0.4em; } div.child { font-size: var(--myFontSize); /* hey, that's the grandparent's font size, isn't it? */ } This does not work. The child will have the same font size as the parent, and ignore the grandparent. In order to understand why we need to understand how custom properties work. What does this line of CSS do? --myFontSize: 1em; It sets a custom property that we can use later. Well duh. Sure. But what value does this custom property have? ... errr ... 1em? Nope. The answer is: none. That’s why the code example doesn’t work. When they are defined, custom properties do not have a value or a type. All that you ordered the browsers to do is to store a token in the variable --myFontSize. This took me a while to wrap my head around, so let’s go a bit deeper. What is a token? Let’s briefly switch to JavaScript to explain. let myVar = 10; What’s the value of myVar in this line? I do not mean: what value is stored in the variable myVar, but: what value does the character sequence myVar have in that line of code? And what type? Well, none. Duh. It’s not a variable or value, it’s just a token that the JavaScript engine interprets as “allow me to access and change a specific variable” whenever you type it. CSS custom properties also hold such tokens. They do not have any intrinsic meaning. Instead, they acquire meaning when they are interpreted by the CSS engine in a certain context, just as the myVar token is in the JavaScript example. So the CSS custom property contains the token 1em without any value, without any type, without any meaning — as yet. You can use pretty any bunch of characters in a custom property definition. Browsers make no assumptions about their validity or usefulness because they don’t yet know what you want to do with the token. So this, too, is a perfectly fine CSS custom property: --myEgoTrip: ppk; Browsers shrug, create the custom property, and store the indicated token. The fact that ppk is invalid in all CSS contexts is irrelevant: we haven’t tried to use it yet. It’s when you actually use the custom property that values and types are assigned. So let’s use it: background-color: var(--myEgoTrip); Now the CSS parser takes the tokens we defined earlier and replaces the custom property with them: background-color: ppk; And only NOW the tokens are read and intrepreted. In this case that results in an error: ppk is not a valid value for background-color. So the CSS declaration as a whole is invalid and nothing happens — well, technically it gets the unset value, but the net result is the same. The custom property itself is still perfectly valid, though. The same happens in our original code example: div.grandparent { /* font-size could be anything */ --myFontSize: 1em; /* just a token; no value, no meaning */ } div.parent { font-size: 0.4em; } div.child { font-size: var(--myFontSize); /* becomes */ font-size: 1em; /* hey, this is valid CSS! */ /* Right, you obviously want the font size to be the same as the parent's */ /* Sure thing, here you go */ } In div.child he tokens are read and interpreted by the CSS parser. This results in a declaration font-size: 1em;. This is perfectly valid CSS, and the browsers duly note that the font size of this element should be 1em. font-size: 1em is relative. To what? Well, to the parent’s font size, of course. Duh. That’s how CSS font-size works. So now the font size of the child becomes the same as its parent’s, and browsers will proudly display the child element’s text in the same font size as the parent element’s while ignoring the grandparent. This is not what we wanted to achieve, though. We want the grandparent’s font size. Custom properties — by themselves — don’t do what we want. We have to find another solution. @property Lea’s article explains that other solution. We have to use the Houdini @property rule. @property --myFontSize { syntax: "<length>"; initial-value: 0; inherits: true; } div { border: 1px solid; padding: 1em; } div.grandparent { /* font-size could be anything */ --myFontSize: 1em; } div.parent { font-size: 0.4em; } div.child { font-size: var(--myFontSize); } Now it works. Wut? Yep — though only in Chrome so far. This is the grandparent This is the parent This is the child What black magic is this? Adding the @property rule changes the custom property --myFontSize from a bunch of tokens without meaning to an actual value. Moreover, this value is calculated in the context it is defined in — the grandfather — so that the 1em value now means 100% of the font size of the grandfather. When we use it in the child it still has this value, and therefore the child gets the same font size as the grandfather, which is exactly what we want to achieve. (The variable uses a value from the context it’s defined in, and not the context it’s executed in. If, like me, you have a grounding in basic JavaScript you may hear “closures!” in the back of your mind. While they are not the same, and you shouldn’t take this apparent equivalency too far, this notion still helped me understand. Maybe it’ll help you as well.) Unfortunately I do not quite understand what I’m doing here, though I can assure you the code snippet works in Chrome — and will likely work in the other browsers once they support @property. Misson completed — just don’t ask me how. Syntax You have to get the definition right. You need all three lines in the @property rule. See also the specification and the MDN page. @property --myFontSize { syntax: "<length>"; initial-value: 0; inherits: true; } The syntax property tells browsers what kind of property it is and makes parsing it easier. Here is the list of possible values for syntax, and in 99% of the cases one of these values is what you need. You could also create your own syntax, e.g. syntax: "ppk | <length>" Now the ppk keyword and any sort of length is allowed as a value. Note that percentages are not lengths — one of the many things I found out during the writing of this article. Still, they are so common that a special value for “length that may be a percentage or may be calculated using percentages” was created: syntax: "<length-percentage>" Finally, one special case you need to know about is this one: syntax: "*" MDN calls this a universal selector, but it isn’t, really. Instead, it means “I don’t know what syntax we’re going to use” and it tells browsers not to attempt to interpret the custom property. In our case that would be counterproductive: we definitely want the 1em to be interpreted. So our example doesn’t work with syntax: "*". initial-value and inherits An initial-value property is required for any syntax value that is not a *. Here that’s simple: just give it an initial value of 0 — or 16px, or any absolute value. The value doesn’t really matter since we’re going to overrule it anyway. Still, a relative value such as 1em is not allowed: browsers don’t know what the 1em would be relative to and reject it as an initial value. Finally, inherits: true specifies that the custom property value can be inherited. We definitely want the computed 1em value to be inherited by the child — that’s the entire point of this experiment. So we carefully set this flag to true. Other use cases So far this article merely rehashed parts of Lea’s. Since I’m not in the habit of rehashing other people’s articles my original plan was to add at least one other use case. Alas, I failed, though Lea was kind enough to explain why each of my ideas fails. Percentage of what? Could we grandfather-inherit percentual margins and paddings? They are relative to the width of the parent of the element you define them on, and I was wondering if it might be useful to send the grandparent’s margin on to the child just like the font size. Something like this: @property --myMargin { syntax: "<length-percentage>"; initial-value: 0; inherits: true; } div.grandparent { --myMargin: 25%; margin-left: var(--myMargin); } div.parent { font-size: 0.4em; } div.child { margin-left: var(--myMargin); /* should now be 25% of the width of the grandfather's parent */ /* but isn't */ } Alas, this does not work. Browsers cannot resolve the 25% in the context of the grandparent, as they did with the 1em, because they don’t know what to do. The most important trick for using percentages in CSS is to always ask yourself: “percentage of WHAT?” That’s exactly what browsers do when they encounter this @property definition. 25% of what? The parent’s font size? Or the parent’s width? (This is the correct answer, but browsers have no way of knowing that.) Or maybe the width of the element itself, for use in background-position? Since browsers cannot figure out what the percentage is relative to they do nothing: the custom property gets the initial value of 0 and the grandfather-inheritance fails. Colours Another idea I had was using this trick for the grandfather’s text colour. What if we store currentColor, which always has the value of the element’s text colour, and send it on to the grandchild? Something like this: @property --myColor { syntax: "<color>"; initial-value: black; inherits: true; } div.grandparent { /* color unknown */ --myColor: currentColor; } div.parent { color: red; } div.child { color: var(--myColor); /* should now have the same color as the grandfather */ /* but doesn't */ } Alas, this does not work either. When the @property blocks are evaluated, and 1em is calculated, currentColor specifically is not touched because it is used as an initial (default) value for some inherited SVG and CSS properties such as fill. Unfortunately I do not fully understand what’s going on, but Tab says this behaviour is necessary, so it is. Pity, but such is life. Especially when you’re working with new CSS functionalities. Conclusion So I tried to find more possbilities for using Lea’s trick, but failed. Relative units are fairly sparse, especially when you leave percentages out of the equation. em and related units such as rem are the only ones, as far as I can see. So we’re left with a very useful trick for font sizes. You should use it when you need it (bearing in mind that right now it’s only supported in Chromium-based browsers), but extending it to other declarations is not possible at the moment. Many thanks to Lea Verou and Tab Atkins for reviewing and correcting an earlier draft of this article. Full Article CSS for JavaScripters
ust After a dull six months, Hostel Hudugaru Bekagiddare brings cheer to Kannada film industry By www.thehindu.com Published On :: Sat, 22 Jul 2023 21:11:12 +0530 After a memorable 2022, the industry suffered a slump in the first half of this year with only Daredevil Musthafa providing a consolation Full Article Bengaluru
ust Explore Ahmedabad in just 24 hours By www.thehindu.com Published On :: Wed, 16 Oct 2024 16:04:42 +0530 If you have just 24 hours in this historic city, here is our quick guide on where to go, and what to eat, and clock in those elusive 10,000 steps Full Article Travel
ust Chief Justice of Madras HC calls on Lt. Governor at Raj Nivas By www.thehindu.com Published On :: Sun, 20 Oct 2024 19:23:47 +0530 Full Article Puducherry
ust Lt. Governor urges industry associations to set up SC/ST cell to assist socially marginalised sections to start ventures By www.thehindu.com Published On :: Wed, 23 Oct 2024 19:06:47 +0530 Full Article Puducherry