Skip to content

Instantly share code, notes, and snippets.

@timelyportfolio
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timelyportfolio/de72cc6a04db0a6085d3 to your computer and use it in GitHub Desktop.
Save timelyportfolio/de72cc6a04db0a6085d3 to your computer and use it in GitHub Desktop.
test flexbox in @rstudio Browser / Viewer using @philipwalton demos

I have wondered for a while how well the RStudio Browser / Viewer pane supports some modern CSS. When I spotted this very handy resource Solved By Flexbox from @philipwalton, I thought it would provide a great suite of tests. It appears most is well supported except the vertical alignment.

# test flexbox css in RStudio browser
# using this really nice resource from Philip Walton
# appears fairly well supported except mainly vertical alignment
library(htmltools)
library(rvest)
library(XML)
library(pipeR)
html("http://philipwalton.github.io/solved-by-flexbox/demos/grids/index.html") %>>%
#html("http://philipwalton.github.io/solved-by-flexbox/demos/media-object/index.html") %>>%
#html("http://philipwalton.github.io/solved-by-flexbox/demos/media-object/index.html") %>>%
#html("http://philipwalton.github.io/solved-by-flexbox/demos/input-add-ons//index.html") %>>%
#html("http://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/index.html") %>>%
#html("http://philipwalton.github.io/solved-by-flexbox/demos/holy-grail/index.html") %>>%
#html("http://philipwalton.github.io/solved-by-flexbox/demos/vertical-centering/index.html") %>>%
saveXML %>>%
HTML %>>%
html_print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment