Wewereallwellpreparedand I wasstartingtofeel a bitliketheCSSvaporwareladybythetimeeventuallygotoutintobrowsers, so I wasquitepleasedwhenitdideventuallyhappen.
Sowhatkindoftwoyearsonamazinglywell, though I feellike I'venowspenthalfofmylifetalkingabouttheirspecifications.
Inwhat's next, I reallystartseemyself a zaproblemsolver.
Whatever I'vedoneintheindustryhasBeanaboutsolvingproblems, andthat's why I reallyloveworkingonCSSbecausewe'vegotalloftheseamazingproblemstosolveeverywhereyoulook, there's a newproblemonsomeone's bringing a problem, whichworkouttodothatandoneoftheproblemsthatwasthatweshouldhaveimmediatelystartedtoseeandwekindofknewthiswasgoingtobeanissue.
Itmeansthatwecanwrite a pageofHTMLandjustloadupin a browser, andit's readableyouknowmostthetime.
That's actuallywhatyouwant.
Sohere's a simpleflexexample.
We'vegot a normalflowheading, and a paragraphdidn't havetodoanythingabouttheirlayout.
Then I'vegotthismediaobjectsthatdisplayflexontheimageinthecontentorflexitems, butthecontenthas a headingandsome a paragraphthat's gonerightbacktheretonormalflow.
Sothat's kindofwhat's happening.
Andthat's whywecan't justmakethings.
Thenestissomewhereinthestructure.
Participateinthegrid.
Ourcardinternals.
I havemademycardagreedso I couldmakemygrid.
I'd like a nest.
Agreedtomakemygriditem a griditselftoeachofmycards.
A littleminigrids, buttheydon't knowabouteachother.
Ifthatthingwasneverthereoninyourdesign, asyoucansay, displaynoneon a container.
Everythinginsidegonecan't seeit.
Displaycontentsdoes a similarthingwiththeboxitself, butleavestheChildrenalone.
Soifyou'vegot a box, yousaydisplaycontentsonthatbox, theboxisremoved, buttheChildrenstayvisibleon, thenparticipateinwhateverlayouttheythenbecome a childoff.
So I'vegot a littleexampleofthat.
We'vegot a gridlayouthereonnestedinside.
Oneofthegriditemsisactually a ULandnestedinsidethatit's gotsomelistitems, sothere's theHTML.
So I'vegot a datewiththeclassofgrid.
That's gonnabemygridcontainer.
I thinkgottodevisetheirdirectChildren.
I'vegotyou.
Well, thatisalso a directchildonthatInsidethatyou?
Well, therearesomelistitemsthatyoucansee.
Sothere's a CSSthedirectgrid.
Childrenhavethatsortofpalebackgroundonthem.
SotheyouElla's wellonthedirectULChildren, theyhave a pinkbackgroundsoyoucanseethatthey'reactually a childofyou.
Displaycontentisonlysupposedtoaffectthevisualdisplay, butdueto a bookinbrowsers, itisactuallyremovingelementsfromtheaccessibilitytreeon, thereforerenderingitnotveryusefulforthethingsitwouldbeusefulfor, whichisallowingsomethingtohave a semanticboxarounditforyou, nosemanticpurposesandforaccessibilitypurposesandsaying, Hey, I'm a list.
Theseexamplesisonline, andit's withmyresourcessoyoucangoandhave a lookandplayaroundwealthandtryingtosquintitonthescreenandworkoutwhat's goingonsowecanmake a griditem a gridyoucansaydisplaygridasfardownasyoulike, butatthemomentthatgridbecomesthisuniqueindependentthing.
Andifwehave a lookatthegridonthechild, there's a goodonthechildinthepinkboxlinesupwiththelinesthatareonthechildsofairlyrecently, infact, beenallowedtooffsetmultiplegrids.
Sothat's sortof a usefulwaytobeabletoscopelinenamestojustthesogooditemitself.
I thinkfairlyobviouslyandlogically, thesubgoodinheritsthegapsfromtheparent, soifyou'veusedtheGapProperty, yourrogueApplecolumngapthat's gonnagetpassedthroughintothesubgrateditem, which I thinkisprobablywhatyou'd expectifyou'vegotgapsontheparentinyourliningthingsupagainsttheparent, youprobablyexpectthatgetpassedthroughintoyourchilditem, andyoucansortofseehowthatworkshere.
Beenplayingaroundthisfor a whileandjustoff I liketostartThinkwell, Willthissolveanyotherproblemsthatwe'vegotbecause, youknow, thisisveryobvioususecasehaving a setofcardslikethis.
Thiswasoneofthefirstthingsthatwasbroughttomay.
Well, whycan't wedothis?
There's alsotheexampleof, youknow, maybehavinglike a 12 columnlayoutandwantingthingsthat a nestedfurtherdowninthestructuretoalsousethatsame 12 columnlayout.
They'rekindoftheobvioussubgridexamples, but I thinkthere's a fewotherthingsthat I'vestartedtorealizewecoulddobecausewe'vegotSubGreteon.
Thedifferencebetweenthatandtheimplicitgridistheimplicitgridiswhenyoujustsay, oh, createasmanyroseasyouwanttofillthis, tofillitwithcontent, which I thinkis a lotofthetime.
Whatwedo.
Ifyou'vegot a setofcardslikethisandyoujustwantthemtoe, keeponfillingcardsandkeepcreatinggridrose.
I'm thinking I thinkwecanprobablysolvethiswithsubgridbecausewe'venowgotawayoffsaying I wantallmycolumnstobeeverythinglinedupincolumnsbutthoseitemstobeable t tocreateimplicittracks, andsoitdoesinvolveanextracontainer, but I needsomethingtosubgrid.
So I'veadded a containerwrapperaroundmyitemsandthat's gonnause a subgridforcolumns.
Youknow, ifyouwaituntil a speckisdoneandimplementedtohave a lookandsayit's rubbish, well, it's toolatebrowsesputtingstuffoutforusbehindflagsorinlikenightlyversionsofbrowsers.
Theygiveus a chancetocontributebecausewhile a speckisonlyin, youknowwhenwe'vegotallthatredoncan I use?
And I thinkaswehavefewerrenderingengineswerelosingplaceswherethoseexperimentsmighthappen, and I thinkthatmakesitevenmoreimportantthatus, astheWebdevelopmentcommunity, useourinfluenceonthebrowsersoftheleft, andwedohaveinfluence.
Hereisthebookinchromiumforsogoodsupportondhejustflaggingupthatthere's ahlikethingorfollowstaryoucanyoucanclickontheretosay, Youknowyes, I thinkso, butit's important I wouldliketohaveiton.
Butwe'rejustheretosay, Hey, yes, thisissomethingthat I needas a Webdeveloper, I wouldfinditusefulifyouwouldliketotalk a bitmoreaboutitandshare a bitmoreinformationthanrightupfeatureslikesogoodoranythingelsethatyouwanttoseeinbrowsers, rightofyourusecaserightoftheproblemsthatyourfeaturewillsolvebecauseit's seeingthoseusecases, youknow, WebdevelopersAftersayingHey, weneedthisandweneedthisbecauseofthisreasonthat's verycompellingforpeopleontheworkinggroupbrowservendorstoactuallythinkaboutimplementingitandsolving a newproblem.
Sometimesweget a featurethatisjustinonebrowser, forexample, it's likelythatfirefolksaregoingtoshipsubgradebeforeanybodyelse, atwhichpointtheentireWebcommunitywillsay, Yeah, Rachel, that's verynice, but I canuseitbecauseit's onlysportinonebrowser.