Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tailwindlabs/tailwindcss
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.8
Choose a base ref
...
head repository: tailwindlabs/tailwindcss
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.0.9
Choose a head ref
  • 12 commits
  • 21 files changed
  • 3 contributors

Commits on Dec 28, 2021

  1. Update changelog

    adamwathan committed Dec 28, 2021
    Configuration menu
    Copy the full SHA
    a1c7868 View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2021

  1. Configuration menu
    Copy the full SHA
    07c3e95 View commit details
    Browse the repository at this point in the history
  2. Improve DEBUG flag (#6797)

    * improve DEBUG flag
    
    * update changelog
    RobinMalfait authored Dec 29, 2021
    Configuration menu
    Copy the full SHA
    10710b0 View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2021

  1. Improve DEBUG parsing: only take care of tailwindcss and not `tailw…

    …ind` (#6804)
    
    * only take care of `tailwindcss` and not `tailwind`
    
    * update changelog
    RobinMalfait authored Dec 30, 2021
    Configuration menu
    Copy the full SHA
    875c850 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2022

  1. Ensure we can use < and > characters in modifiers (#6851)

    * ensure we can use "special" characters in modifiers
    
    Fixes: #6778
    
    * update changelog
    RobinMalfait authored Jan 3, 2022
    Configuration menu
    Copy the full SHA
    b341813 View commit details
    Browse the repository at this point in the history
  2. Validate theme() works in arbitray values (#6852)

    * add tests to ensure theme value inside arbitrary values work
    
    * update changelog
    RobinMalfait authored Jan 3, 2022
    Configuration menu
    Copy the full SHA
    c912434 View commit details
    Browse the repository at this point in the history
  3. Properly detect theme() value usage in arbitrary properties (#6854)

    * properly detect theme value in arbitrary properties
    
    * update changelog
    RobinMalfait authored Jan 3, 2022
    Configuration menu
    Copy the full SHA
    3149738 View commit details
    Browse the repository at this point in the history
  4. Improve collapsing of duplicate declarations (#6856)

    * improve collapsing of duplicate properties
    
    In theory, we don't have to do anything because the browser is smart
    enough to figure everything out. However, leaving in duplicate
    properties is not that ideal for file size.
    
    Our previous method was pretty simple: if you see a declaration you
    already saw in this rule, delete the previous one and keep the current
    one.
    
    This works pretty well, but this gets rid of **all** the declarations
    with the same property. This is not great for overrides for older
    browsers.
    
    In a perfect world, we can handle this based on your target browser but
    this is a lot of unnecessary complexity and will slow things down
    performance wise.
    
    Alternative, we improved the solution by being a bit smarter:
    1. Delete duplicate declarations that have the same property and value
       (this will get rid of **exact** duplications).
    2. Delete declarations with the same property and the same **unit**.
    
    This means that we will reduce this:
    ```css
    .example {
      height: 50%;
      height: 100px;
      height: 20vh;
      height: 30%;
      height: 50px;
      height: 30vh;
      transform: var(--value);
      transform: var(--value);
    }
    ```
    
    To:
    ```diff-css
      .example {
    -   height: 50%;    /* Another height exists later with a `%` unit */
    -   height: 100px;  /* Another height exists later with a `px` unit */
    -   height: 20vh;   /* Another height exists later with a `vh` unit */
        height: 30%;
        height: 50px;
        height: 30vh;
    -   transform: var(--value); /* Value is too complex, but is **exactly** the same as the one below */
        transform: var(--value);
      }
    ```
    
    This will reduce the values that we are 100% sure that can be safely
    removed. This will still result in some overrides but the browser can
    handle those for you.
    
    Fixes: #6844
    
    * update changelog
    RobinMalfait authored Jan 3, 2022
    Configuration menu
    Copy the full SHA
    b9af5a9 View commit details
    Browse the repository at this point in the history
  5. Remove the watching context (#6858)

    * remove watching context
    
    * update changelog
    RobinMalfait authored Jan 3, 2022
    Configuration menu
    Copy the full SHA
    1cbb29f View commit details
    Browse the repository at this point in the history
  6. update changelog

    Improve wording a bit.
    RobinMalfait committed Jan 3, 2022
    Configuration menu
    Copy the full SHA
    87b5d2d View commit details
    Browse the repository at this point in the history
  7. update changelog

    RobinMalfait committed Jan 3, 2022
    Configuration menu
    Copy the full SHA
    1b691fa View commit details
    Browse the repository at this point in the history
  8. 3.0.9

    RobinMalfait committed Jan 3, 2022
    Configuration menu
    Copy the full SHA
    51b3c0a View commit details
    Browse the repository at this point in the history
Loading